Right Justified Working Storage variables in COBOL



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Right Justified Working Storage variables in COBOL

Postby Alex Volf » Sat Oct 31, 2009 3:23 am

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?
Alex Volf
 
Posts: 1
Joined: Sat Oct 31, 2009 3:17 am
Has thanked: 0 time
Been thanked: 0 time

Re: Right Justified Working Storage variables in COBOL

Postby dick scherrer » Sat Oct 31, 2009 3:39 am

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. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post