Page 1 of 1

S0C1 Abend in COBOL

PostPosted: Wed Sep 12, 2012 11:08 pm
by ankur0789
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

Re: soc1 abend

PostPosted: Wed Sep 12, 2012 11:11 pm
by NicC
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?

Re: soc1 abend

PostPosted: Thu Sep 13, 2012 12:16 am
by BillyBoyo
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.