View previous topic :: View next topic |
Author |
Message |
waves Beginner
Joined: 09 Nov 2006 Posts: 35 Topics: 12
|
Posted: Thu Apr 17, 2008 5:44 am Post subject: SOC7 Issue in PLI Program |
|
|
I am currently facing a SOC 7 error in PL/I Program. The issue here is same as that arises in COBOL. I am comparing a Fixed Decimal Variable (Equivalent to Comp-3) with Zeros but it contains Spaces in it. I thought of checking whether the variable is Numeric or not before comparing with zeros, but am not sure of how to do it in PL/I, Similar to IS NUMERIC Clause in COBOL.
Could some one help me in knowing the equivalent way of checking the same in PL/I |
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Fri Apr 18, 2008 5:19 am Post subject: |
|
|
1 - You can overlay a CHAR field over the FIXED DEC field and use VERIFY
2 - You can fix the program providing you with bad data or, if it is internal to the program, ensure your variables are INIT when declared or in an initialisation routine or are declared correctly. _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
|
|
|