11-24-2014 10:56 AM
length b $200;
For trailing, just move the strip(a) before the repeat.
11-24-2014 11:33 AM
i want to export to Csv file after coding
sso we use something like dat_null_
AAnd put function now length is $12.
and it shd be A25
11-24-2014 11:44 AM
If you are using DATA _NULL_ and a PUT statement to write out the data, it is easy to write out trailing blanks. Add a format specification to the PUT statement, for example:
put varname $25. ',' ... more variables ...;
This will write a total of 25 characters for VARNAME, including trailing blanks as needed to reach that length of 25.