Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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
View previous topic :: :: View next topic  
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

priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
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: 1592

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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Joinkeys with condition scdinesh DFSORT/ICETOOL 10 Tue Feb 14, 2017 12:20 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts INCLUDE condition questions van bui DFSORT/ICETOOL 1 Thu Jun 30, 2016 9:52 am
No new posts 2 vsam file compare and update a fiel... ABINAYATHULASI DFSORT/ICETOOL 6 Sun May 29, 2016 11:15 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us