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

How can i know because of which record i got the SOC7 abend


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

New User


Joined: 10 Jul 2006
Posts: 1

PostPosted: Mon Jul 10, 2006 8:16 pm
Reply with quote

i got a SOC7 error.in the input file im having morethan 1 lakh records.how can i know because of which record i got the SOC7 abend.
can anyone tell me
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Tue Jul 11, 2006 10:43 am
Reply with quote

You can define a counter.
Increment the counter whenever you read the input file.

When your program in calling an abend, display the counter.
You can physically locate the record based on the counter.

~Vamsi
Back to top
View user's profile Send private message
Nithinra

New User


Joined: 03 Jul 2006
Posts: 11

PostPosted: Tue Jul 11, 2006 1:55 pm
Reply with quote

Hi ,
Yes .. you can use counters. And to find the field for which error has occured. Looking at the spool you can find out the Offset Address at which error has occurred.
Then go to the sysprint and find for the offset. Check for the STATEMENT before the offset address.
This would be the STATEMENT (Mostly it will be a MOVE stmt or COMPUTE)
where the error would have occured.

I think this makes it clear.

Regards,
Nithin
Back to top
View user's profile Send private message
HARIBHARAT

New User


Joined: 05 Jul 2006
Posts: 65
Location: pune

PostPosted: Mon Jul 31, 2006 5:54 pm
Reply with quote

Give me sample code where to set counter?iam not get clearly, give elbartely.
Back to top
View user's profile Send private message
vijayamadhuri

Active User


Joined: 06 Apr 2005
Posts: 180

PostPosted: Mon Jul 31, 2006 8:14 pm
Reply with quote

try using ex-peditor.u can keep the record that is being currently bein fpeocessed by using the keep option(k) . hit f12 .if there is a soc 7 error it will abent at that point. u have u r record which caused the soc7
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Mon Jul 31, 2006 10:35 pm
Reply with quote

HARIBHARAT,

Quote:
Give me sample code where to set counter?iam not get clearly, give elbartely.


If you are not using any tools then you can use this technique, ie., counter technique. Getting the code it bit diff. let me give you a detail exp. Just imagine that you are handling 100 records. Just declare a variable named
05 counter pic 999 value 0.

then just while performing the loop or manipulating the data just increment the counter. ie.
COMPUTE COUNTER = COUNTER + 1.
likewise then finally when the record is abended just display the counter value . So that the counter value will be equal to the record read in the file. so you can view it easily. Hope you got . let me know if you still have any concern/ icon_cool.gif
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Mon Aug 14, 2006 12:41 pm
Reply with quote

Hi,

We may not be allowed to keep our hands on production jobs. We can handle these errors only by XPeditor.

Try to have the jcl in your local dataset, and try to run the program using XPeditor.

SOC7 mainly occurs due to invalid data access or trying to access a array counter over its limit.

Try to run the program para by para and check if there is any illegal data access happening in the para.

I go with vijayamadhuri, use the technique to find the record causing the abend.

Regards,
Diwakar.D

-----------------------------------------------------------
Nobody is perfect . I am Nobody
Back to top
View user's profile Send private message
rpanicker

New User


Joined: 19 Apr 2005
Posts: 4

PostPosted: Mon Aug 14, 2006 3:40 pm
Reply with quote

Check whether your job gave a DUMP. If you are not able to replicate it in test then a dump analysis could help you to point out the field causing the problem.
Back to top
View user's profile Send private message
stly
Warnings : 1

New User


Joined: 25 Jul 2005
Posts: 93

PostPosted: Tue Aug 22, 2006 6:12 pm
Reply with quote

First read from the input file.
on succesful read from the input file increment the read count by one.
ADD WS-NUM-1 TO WS-READ-CNT

display the read count.
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts ISAM and abend S03B JCL & VSAM 10
Search our Forums:

Back to Top