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

Best solution for S0C1 Abend


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bhanu1.p

New User


Joined: 08 Sep 2006
Posts: 1
Location: MUMBAI

PostPosted: Fri Sep 08, 2006 10:56 am
Reply with quote

I WANT THE ANALYSIS AND SOLUTIONS FOR A PROGRAM WHICH IS ABEND WITH S0C1, Need to know when this abend occurs and how to solve it.
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Sat Sep 09, 2006 3:56 am
Reply with quote

Check it here
operation exception 0C1
Back to top
View user's profile Send private message
shaktiprasad

New User


Joined: 20 Aug 2006
Posts: 34
Location: chennai

PostPosted: Sat Sep 09, 2006 10:50 am
Reply with quote

I HAVE WRITTEN A COBOL PROGRAM WITH DB2 ATTACHED.
I WAS ABLE TO COMPILE IT SUCCESSFULLY.
GOT THE PLAN AS WELL AS LOAD MODULE.
BUT I AM NOT ABLE TO RUN THAT.
IN RUN JCL I HAVE INCLUDED ONLY THE LOAD MODULE AND I AM GETTING AN ABBEND OF S0C1.
PLEASE TELL ME WITH A SAMPLE JCL HOW TO RUN THIS PROG.
Back to top
View user's profile Send private message
vishal_a

New User


Joined: 24 May 2005
Posts: 45
Location: Noida

PostPosted: Sat Sep 09, 2006 1:47 pm
Reply with quote

Hi Shakti,

SOC1 is basically Protection error . It can occur due to bad memory area access by a program.

Possible situation for this error may be :
1) Bad reference of memory.
2) Wrong LRECL in program as respect to JCL (this could also be reason .. once i encountered )
3) If occurs clause is used in your program than out of subscript could result in SOC1.
4) If redefine clause is used in your program than it could also result in SOC1.

Thanks
Vishal
Back to top
View user's profile Send private message
nhgol

New User


Joined: 10 Oct 2006
Posts: 4

PostPosted: Tue Oct 10, 2006 1:43 am
Reply with quote

S0C1 is an operation exception. It means that the location the PSW is pointing to (where the CPU is about to execute an instruction) doesn't have a valid instruction in it. You've either branched out of your program to a place that doesn't have a valid instruction or you've somehow destroyed some code in your program. It can be caused by several things - one is dropping out the bottom of a program. It used to be caused by trying to read from an unopened file, but the indication of that has now changed. A static call to a program that wasn't link edited with you used to cause it also. If you have a runaway subscript while building a table, you can also overlay parts of your program, but that's usually caught by a compiler option to check for out of bounds subscripts.
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 -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
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
No new posts Need to get an DLI abend like U0200 IMS DB/DC 2
No new posts Getting an abend (I/O abend was trapp... ABENDS & Debugging 3
No new posts S722 abend and ESTAE ABENDS & Debugging 1
Search our Forums:

Back to Top