View previous topic :: View next topic
|
Author |
Message |
sonasheetal
New User
Joined: 08 Jun 2005 Posts: 27
|
|
|
|
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 |
|
|
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 463
|
|
|
|
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 |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
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 |
|
|
parikshit123
Active User
Joined: 01 Jul 2005 Posts: 269 Location: India
|
|
|
|
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 |
|
|
parikshit123
Active User
Joined: 01 Jul 2005 Posts: 269 Location: India
|
|
|
|
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 |
|
|
sonasheetal
New User
Joined: 08 Jun 2005 Posts: 27
|
|
|
|
Hi Folks,
Thanks a lot for all of ur quick reply. |
|
Back to top |
|
|
|