View previous topic :: View next topic
|
Author |
Message |
gvel19
New User
Joined: 20 Jul 2008 Posts: 19 Location: Schenactady, US
|
|
|
|
I got a SOC4 abend for a program.How do I find the line no. where the error has occured. How to find it using the following
1) OFFSET
2) PSW |
|
Back to top |
|
|
gvel19
New User
Joined: 20 Jul 2008 Posts: 19 Location: Schenactady, US
|
|
|
|
I got a SO4C abend and I checked the same in some books couldn't find it. I have checked the DUMP in the spool but didn't get any information.
Thanks,
Velmurugan G |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
The reason for S0C4 is when an application program passes an invalid parameter-list address or a parameter list which is not read/write accessible. Might be in program logic READ verb is not properly coded, however You've provided a very little information to get a better suggestoin. Tell us a little about the program which was executing while abend occurs.
Further, there are other DD names which can provide You ABEND info, please share Your JCL, might provide an insight. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
First question: was it an S04C or S0C4? The first has to do with a terminal monitor program, the second with addressing. The first is pretty rare, the second is quite common. |
|
Back to top |
|
|
gvel19
New User
Joined: 20 Jul 2008 Posts: 19 Location: Schenactady, US
|
|
|
|
Hi Robert,
1)SO4C abend
2)How to find the line number (where the error has occured) using the PSW and the OFFSET. What we need to do using the PSW (or) OFFSET number in the compile list. I have checked the OFFSET in the compiling list and could not able to find it.
Thanks,
Velmurugan |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Standard debugging methods apply. Does the message indicate the abend occurred in your program, a subprogram, or a system program?
What is the program doing? How far did it get when it blew? Do you have Abend Aid on site? If so, where does Abend Aid say the program blew?
Post the exact messages for the abend.
What language is the program written in? If COBOL, does the compile include a LIST or OFFSET option? If not, first recompile the program with LIST (or OFFSET) to get verb offsets. |
|
Back to top |
|
|
Shobana Bhaskar
New User
Joined: 02 Mar 2007 Posts: 35 Location: Pennsylvania, US
|
|
|
|
I got the same abend in one of my modules. The reason was on fetching CLOB DB from a table I have used COALESCE(CLOB_COL, ' '). Once I removed this COALESCE, the job went fine. Check if this could help you. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
The problem was encountered over 4 months ago. I certainly hope the original poster solved this before now. |
|
Back to top |
|
|
Shobana Bhaskar
New User
Joined: 02 Mar 2007 Posts: 35 Location: Pennsylvania, US
|
|
|
|
Yes that's true. However this may help someone else who are looking to solve SO4C. |
|
Back to top |
|
|
|