S0C1 Abend in COBOL

Get solution for your ABEND Codes & System Error Messages, SQL Codes, File Status etc...
ankur0789
Posts: 1
Joined: Wed Sep 12, 2012 10:51 pm
Skillset: cobol,jcl,ims
Referer: google

S0C1 Abend in COBOL

Postby ankur0789 » Wed Sep 12, 2012 11:08 pm

Hi,

I am getting SOC1 abend in executing JCL running a cobol program.
more than half of records of input file have been processed and written to output file.
But after this i am getting the SOC1 abend. this abend occurring when I am processing a large file of 2.5 million records.
but when processing a small file which only have 100 thousand records processed fine and job ran successfully.
please guide me over the same....as i am new to cobol programming

NicC
Global moderator
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
Referer: Google
Location: Pushing up the daisies (almost)

Re: soc1 abend

Postby NicC » Wed Sep 12, 2012 11:11 pm

Welcome to the forum!

First of all, have you found out what a S0C1 abend actually is? Have you looked on the forum for other discussions on this abend code?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic

BillyBoyo
Global moderator
Posts: 3805
Joined: Tue Jan 25, 2011 12:02 am
Skillset: Easytrieve Plus, Cobol, Utilities, that sort of stuff
Referer: Google

Re: soc1 abend

Postby BillyBoyo » Thu Sep 13, 2012 12:16 am

In your previous records there was not data to cause this particular problem.

In your second set of data, and the quantity of it needn't be significant, but might be, data existed to cause the S0C1.

You probably have an OCCURS and have a subscript/index that has "gone wild".

Are you using compile option SSRANGE? This automatically checks that you don't exceed the defined boundaries of your tables.


  • Similar Topics
    Replies
    Views
    Last post