IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Error while comparing to Zero


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Thu Nov 15, 2007 3:58 am
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: 2146
Location: At my coffee table

PostPosted: Thu Nov 15, 2007 4:39 am
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
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

Moderator Emeritus


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

PostPosted: Fri Nov 16, 2007 4:45 am
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 All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts U0016 error in JCL JCL & VSAM 4
No new posts python on z/OS error no encoding decl... Testing & Performance 0
No new posts IEW2315E 1369 Link error All Other Mainframe Topics 3
No new posts Help on IMS -API URL migrating from P... IMS DB/DC 1
No new posts JES datasets IO Error ABENDS & Debugging 3
Search our Forums:


Back to Top