This example displays the numbers 1 through 5. It uses _pcolno to position the numbers so that each number begins at its own position:

set talk off
for i=1 to 5
  _pcolno=i // set the column position
  string=ltrim(str(i))
  // convert i to a single character
  ?? string
  ?
endfor
set talk on
// the output looks like this
// 1
// 2
// 3
// 4
// 5