Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Error while comparing to Zero

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
Delip

New User


Joined: 13 Sep 2007
Posts: 46
Location: Bangalore

PostPosted: Thu Nov 15, 2007 3:28 am    Post subject: Error while comparing to Zero
Reply with quote

I have a variable definition as below,

vara w 14 n 2
varb w 14 n 2
varc w 16 n 9

when I am trying to equate to zero in If condition,I am getting '*******A006 PROGRAM INTERRUPT - CODE 7 (DATA EXCP)' error.

IF VARA EQ 0
DO XXXX
END-IF

the sam eproblem with the below expression,

VARB = VARA / VARC.

Any idea?
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Nov 15, 2007 3:58 am    Post subject:
Reply with quote

Hello,

Un-initialized numbers cause an 0c7 in many languages. . .
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Thu Nov 15, 2007 4:39 am    Post subject:
Reply with quote

Try to redefine the numeric values with a alphanumeric definitions and use EZT's display in hex to see what is actually in those fields....
Back to top
View user's profile Send private message
Delip

New User


Joined: 13 Sep 2007
Posts: 46
Location: Bangalore

PostPosted: Thu Nov 15, 2007 11:59 pm    Post subject:
Reply with quote

Hi,
I could fix teh issue. It was because of some low values being passed vara.Thank you for your cooperation.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Nov 16, 2007 4:45 am    Post subject: Reply to: Error while comparing to Zero
Reply with quote

You're welcomke icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IDC2902I Error tzeche ABENDS & Debugging 2 Tue Mar 28, 2017 11:39 am
No new posts Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm
No new posts INVOKE WEBSERVICE error danik56 CICS 11 Thu Mar 09, 2017 11:52 am
No new posts Row not found Sql error GaganGarg DB2 7 Tue Mar 07, 2017 6:29 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us