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

Getting SOC7 with 1 million records


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
murali_andaluri
Currently Banned

New User


Joined: 07 May 2005
Posts: 22

PostPosted: Tue Jul 08, 2008 12:16 pm
Reply with quote

Hi All,

my job is processing a file which contains 1 million records. I got a SOC7 error. we are not using any abend aid or cee dump or any tools.
How can i find the record which causes for SOC7 error.

Murali
Back to top
View user's profile Send private message
sid_aec

New User


Joined: 01 Jul 2008
Posts: 60
Location: Kolkata

PostPosted: Tue Jul 08, 2008 12:27 pm
Reply with quote

Then you have to take the code in test and need to put display of record counts to check how many records it processed.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jul 08, 2008 1:19 pm
Reply with quote

Hello,

One easy way to do this is:

If your program does not have a "WORKING STORAGE" footprint, add one. This will be an 01 or 77 ws variable with a value of "WORKING STORAGE".

Immediately after this literal, add a "record count". When the program abends, the value in the area next to the literal is your record number.
Back to top
View user's profile Send private message
murali_andaluri
Currently Banned

New User


Joined: 07 May 2005
Posts: 22

PostPosted: Tue Jul 08, 2008 1:25 pm
Reply with quote

Hi Dick,

i did not get clearly. could you please give a code for this.

regards
murali
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jul 08, 2008 7:39 pm
Reply with quote

Hello,

Code:
WORKING-STORAGE SECTION.
77  WS-LITERAL          PIC X(28) VALUE 'WORKING-STORAGE FOR yourpgm'.
77  MY-REC-CNT          PIC 9(7)  VALUE ZEROS.


Immediatly after the read increment MY-REC-CNT. When the program abends, look for the "footprint" and the record count will be next.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Join multiple records using splice DFSORT/ICETOOL 5
Search our Forums:

Back to Top