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: 19244
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: 19244
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Getting Error while trying to establi... DB2 3
Search our Forums:

Back to Top