How to display S9(4)V9(5) COMP-3
I used S9(4)V9(5) in my p/p variable but am facing S0C7 abend.
I want to display the input variable S9(4)V9(5) COMP-3
so suggest me the pic clause to be given for my o/p variable.
Joined: 06 Jun 2008 Posts: 8214 Location: Dubuque, Iowa, USA
The S0C7 implies invalid data in the field (as long as the S0C7 is occurring on your DISPLAY) -- either redefine as PIC X and display that, or do an IF NUMERIC test before your display and use an ELSE to display an invalid data message.