Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
getting S0C7 in the if condition

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
Author Message
sankarrajan

New User


Joined: 11 May 2005
Posts: 3

PostPosted: Fri Dec 02, 2005 6:22 pm    Post subject: getting S0C7 in the if condition
Reply with quote

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
View user's profile Send private message
References
PostPosted: Fri Dec 02, 2005 6:22 pm    Post subject: Re: getting S0C7 in the if condition Reply with quote

priyesh.agrawal

Global Moderator


Joined: 28 Mar 2005
Posts: 1512
Location: Chicago, IL

PostPosted: Fri Dec 02, 2005 7:01 pm    Post subject: Re: getting S0C7 in the if condition
Reply with quote

Initialize both the variable once.

Regards,

Priyesh.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1481

PostPosted: Sat Dec 03, 2005 9:44 am    Post subject:
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1