Anybody got an easy way to right-adjust a character variable with zero fill? I have been using perform-until loops, but wondered if there is easier or better method that I'm overlooking.
Here's an example. Some-var is defined as PIC X(6).
Here's an example. Some-var is defined as PIC X(6).
Code:
perform until Some-var (6:1) not equal space move Some-var (1:5) to Some-var (2:5) move zero to Some-var (1:1) end-perform
Comment