View previous topic :: View next topic
|
Author |
Message |
sankarrajan
New User
Joined: 11 May 2005 Posts: 3
|
|
|
|
hi,
i am getting S0C7 abend when this statement encounters.
IF FB-OPTCOMM (FB) IS EQUAL TO ZEROS AND
FB-TRDCOMM (FB) IS EQUAL TO ZEROS
and the declaration of the variables are like this:
77 FB PIC 9(5) COMP-3 VALUE ZERO.
03 FB-TRDCOMM PIC S9(11)V9(5) COMP-3
03 FB-OPTCOMM PIC S9(11)V9(5) COMP-3
can anyone help me how to solve this?
Regards,
sankar |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Initialize both the variable once.
Regards,
Priyesh. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
The solution to your prob depends on whether you've moved data to those 2 fields before the IF stmt is executed.
If no, then Priyesh's suggestion will solve it.
If yes, that means you don't have valid COMP-3 data in 1 or both of the fields. You must then look at where the data came from. |
|
Back to top |
|
|
|