Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Need Solution for S0C1 Abend

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
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    Post subject: Need Solution for S0C1 Abend
Reply with quote

I WANT THE ANALYSIS AND SOLUTIONS FOR A PROGRAM WHICH IS ABEND WITH S0C1 ,ATLEAST AN IDEA WHEN THIS OCCURS
Back to top
View user's profile Send private message

priyesh.agrawal

Senior Member


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

PostPosted: Sat Sep 09, 2006 3:56 am    Post subject: Re: ABEND WITH S0C1
Reply with quote

Check it here
System detected an 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    Post subject: HOW TO RUN A EMBEDED DB2 WITH JCL
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    Post subject:
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    Post subject: Re: ABEND WITH S0C1
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    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts C03 ABEND sjiraga PL/I & Assembler 1 Thu Jun 01, 2017 4:51 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm
No new posts hot to get details when "EXEC CI... Andi1982 CICS 11 Tue Sep 20, 2016 5:01 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us