View previous topic :: View next topic
|
Author |
Message |
Delip
New User
Joined: 13 Sep 2007 Posts: 46 Location: Bangalore
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Un-initialized numbers cause an 0c7 in many languages. . . |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
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 |
|
|
Delip
New User
Joined: 13 Sep 2007 Posts: 46 Location: Bangalore
|
|
|
|
Hi,
I could fix teh issue. It was because of some low values being passed vara.Thank you for your cooperation. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
You're welcomke |
|
Back to top |
|
|
|