Page 1 of 1

Right Justified Working Storage variables in COBOL

PostPosted: Sat Oct 31, 2009 3:23 am
by Alex Volf
I tried to declare a variable using the keyword JUST, like this:

01 ws-license pic x(25) JUST.

Then, I moved an incoming variable to it and tried to DISPLAY it.

It came out as Left Justified.

What am I doing wrong?

Re: Right Justified Working Storage variables in COBOL

PostPosted: Sat Oct 31, 2009 3:39 am
by dick scherrer
Hello,

What was the length of the "sending" field? If they are the same or the receiving field is smaller, it probably worked as it should. . .