Page 1 of 1

Abend S0C4

PostPosted: Mon Dec 27, 2010 6:00 pm
by anoopt
What is abend S0c4?
how i can avoid this?

Re: abend

PostPosted: Mon Dec 27, 2010 6:51 pm
by NicC
Read the System Messages manual. It is what it is there for. What is the point of people writing manuals if you do not read them. You may also get info in the COBOL Language Reference manual and the COBOL Programmers and User's Guide (or similar title)

Re: abend

PostPosted: Tue Dec 28, 2010 1:24 am
by steve-myers
I'll give you a freebie. Look at this manual. This error is caused by an error in a program. You avoid this error by writing programs that do not have errors, and by not using programs that contain errors. There are so many ways for a program to get this error that no one can tell you how to correct this error with the information you have provided.

Re: abend

PostPosted: Tue Dec 28, 2010 1:30 am
by dick scherrer
Hello and welcome to the forum,

If your 0c4 is like many (actually almoat all) the problem is in the code which causes attempting to use memory that the code cannot use. . .

What was the last successful operation before the abend?

You might add some diagnostic code to your program to determine where the problem first occurs (not the 0c4 itself necessarily, but the code that "sets the stage" for the 0c4).