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

Getting SOC4 abend and not able to figure out the solution


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

New User


Joined: 21 Aug 2006
Posts: 72

PostPosted: Sun May 09, 2010 7:39 am
Reply with quote

Hi Everyone,

I am getting SOC4 abend and not able to figure out the solution.

SYSTEM COMPLETION CODE=0C4 REASON CODE=00000010


when i go into abend -aid, i see this message for a production file i am using as input.

Code:
File errors ...(ACB)  return code = 000 (X'00')                       
                         All data sets were opened successfully.       
                      Reason code = 000 (X'00')                       
                         No error.                                     
            ...(RPL)  return code = 008 (X'08')                       
                         Logical error; specific error is indicated   
                         in feedback field in the RPL.                 
                      Reason code = 016 (X'10')                       
                         Record not found.             


Code:
Current key:                                                           
                                                                       
379C2940   CHAR  00146146990                                           
           ZONE  FFFFFFFFFFF                                           
          DIGIT  00146146990                                           
                 1...5...10.                                           
                                                                       
Current record:                                                         
                                                                       
  The current record is not available because the record was not found.
                                                                       
Previous record:                                                       
                                                                       
  No previous record for skip sequential or random processing.         
Data Component:   



I have verified that all the DD names are correct and matching with the assign clause.

Let me know what approach i need to follow to get this corrected ?
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: Sun May 09, 2010 8:13 am
Reply with quote

Hello,

Suggest you determine which instruction is causing the 0c4. Once you know the instruction, you can correct the problem.

What kind of program is this? Not just COBOL, but what does it do?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Sun May 09, 2010 6:06 pm
Reply with quote

For a S0C4 abend, Abend Aid puts out a very nice listing that includes the most common causes of the abend. Based on the instruction that is abending, you can use the listing to rule out possible causes until you find out what the problem is.

You could also start by looking at the code for the input file. If a record is not found, and your program attempted to access the record (or any part of it) ANYWAY, you could easily get a S0C4 abend by doing so.
Back to top
View user's profile Send private message
baljinders

New User


Joined: 21 Aug 2006
Posts: 72

PostPosted: Mon May 10, 2010 11:13 pm
Reply with quote

The problem was because of one of the input file. Now the problem has been resolved.

Thanks Guys...
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: Mon May 10, 2010 11:30 pm
Reply with quote

Hello,

Quote:
The problem was because of one of the input file. Now the problem has been resolved.
Good to hear it is working, but what problem was found with "one of the inpout file"?

If you post the cause/solution, it will help someone else. . .
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 ISAM and abend S03B JCL & VSAM 10
No new posts SDSF like solution in EJES (store com... All Other Mainframe Topics 4
No new posts Abend S0C4 11 (Page Translation Excep... PL/I & Assembler 16
No new posts WER999A - UNSUCCESSFUL SORT 8ED U Ab... SYNCSORT 5
No new posts the system or user abend SF0F R=NULL COBOL Programming 0
Search our Forums:

Back to Top