09-19-2014 09:45 AM
i am supposed to write these four var to an output file and my id must be a char variable starting from position 111 ending position 125
but they get left justified ,probably cuz they are numeric . is there a way i can move them to start from position 111 without beeing converted to char var?
put @001 fname 25.
@026 lname 25.
@051 email 60.
@111 id 15.
09-19-2014 10:38 AM
PUT @1 fname
@111 id 15.-L
sorry about the 25. - I thought id was the first variable
In your question you state id gets left aligned, but I'm assuming you misstated that - I think you meant right aligned.
This will left align id starting at column 111.
If you wanted to center the value, use -C, if you want to right align(default for numeric variables), use -R
Look in online manual under PUT formatted for explanation and other examples.
Need further help from the community? Please ask a new question.