IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Reg Soc7? How to find out this one?


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sonasheetal

New User


Joined: 08 Jun 2005
Posts: 27

PostPosted: Tue Feb 07, 2006 4:47 pm
Reply with quote

Suppose there are 4 input files in a program. If a SOC 7 error occurs, how can we figure out which one of the input files resulted in the error?

I would apprciate if ur answering.,
Bye
Sona
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Tue Feb 07, 2006 4:59 pm
Reply with quote

Hi,

Quote:
Suppose there are 4 input files in a program. If a SOC 7 error occurs, how can we figure out which one of the input files resulted in the error?

I would apprciate if ur answering.,
Bye
Sona


To find the where SOC7 abend happedn the best wayis use DISPLAY in your cobol program . Using this you can fined it.

Hope this helps

Regards
Rupesh
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


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

PostPosted: Tue Feb 07, 2006 5:00 pm
Reply with quote

Sona,

S0C7 is a data exception error caused by Invalid Data.

You'll have to identify the statement causing S0C-7 first with the help of offset value given in abend log. Then identify what input file is passing values to the variables involved in the statement.

Giving few displays around the statement will help you grip on the error.

P.S. You'll find lots of document available in the site for S0C-7 error resolution. Take a look there, it'll help you.

Regards,

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

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Tue Feb 07, 2006 5:03 pm
Reply with quote

Hi sonasheetal,

When you get S0C7 error, you will definitely get an Offset. Note that Offset. Now compile the program and in the compile list find the offset. Then just above you will get the line number for the code. Now go to the top of the compile listing and find out the line number. You will get the COBOL verb and variables name from there.

After getting the variable names, try to locate the variable definition in compile listing. After getting this you will get the BLW at the right side of the variable. Note that and in the Dump, go to that particular BLW. You can see the data within that variable

Thanks,
Parikshit
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Tue Feb 07, 2006 5:05 pm
Reply with quote

Opps,

I guess priyesh posted while I was writting.



Quote:
P.S. You'll find lots of document available in the site for S0C-7 error resolution. Take a look there, it'll help you.


Anyway, You are right Priyesh.
Threre are a number of documents wherein resolution of S0C-7 is well documented. Searching the forum will definitely get you a good one.

Thanks,
Parikshit.
Back to top
View user's profile Send private message
sonasheetal

New User


Joined: 08 Jun 2005
Posts: 27

PostPosted: Tue Feb 07, 2006 5:16 pm
Reply with quote

Hi Folks,

Thanks a lot for all of ur quick reply.
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 -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts Find the occurrence of Key Field (Par... DFSORT/ICETOOL 6
No new posts Find a record count/numeric is multip... COBOL Programming 1
No new posts Need to find a specific STRING COBOL Programming 11
Search our Forums:

Back to Top