Please explain what you are trying to do. It is probably easier to just have the DATA step write the data in the form you need.
So let's say your actual data looks like this simple data file.
data have ;
input string $50.;
cards;
14C
04799
0000011832
0000000000
00641934
0007406199999909
001
KKKONI________
ZZ____
000007000341
000000000M00223353
00000000
000563500.00
000524551.07
00000000
0240
000004996.38
000000000000
;
If you want to write that out to one line with # between the values and an extra 65 blanks after the last value then you could use this data step. The +(-1) will back up over the # delimiter that the PUT automatically generates before a new value when using DSD option.
data _null_;
file example dsd dlm='#' lrecl=32767 ;
set have end=eof ;
put string @ ;
if eof then put +(-1) 65*' ';
run;
... View more