MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SOC7 Issue in PLI Program

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Problem Determination
View previous topic :: View next topic  
Author Message
waves
Beginner


Joined: 09 Nov 2006
Posts: 35
Topics: 12

PostPosted: Thu Apr 17, 2008 5:44 am    Post subject: SOC7 Issue in PLI Program Reply with quote

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 Question
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Fri Apr 18, 2008 5:19 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Problem Determination All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group