Eliminate zeroes

How do I move 123 from a numeric variable having value 12300000000 to a comp 3 variable

Questions by Mainframeguy   answers by Mainframeguy

Showing Answers 1 - 2 of 2 Answers

Numeric data always right justification and alphanumeric data left justification. Please correct me if i am wrong.

working stroage section
 
          01   X   PIC  X(3)    VALUE    '12300000000'.
P.D.

      DISPLAY  X.                ( X=123)
      MOVE  X   TO   Y.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions