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
 
S0C4 abend while trying to open an empty cursor

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
sindu.sagudam

New User


Joined: 02 May 2007
Posts: 8
Location: mumbai

PostPosted: Wed May 02, 2007 6:18 pm    Post subject: S0C4 abend while trying to open an empty cursor
Reply with quote

i was trying to open a cursor(probably an empty one)
Is there possibility that it will give sco4 abend
Back to top
View user's profile Send private message

mkk157

Active User


Joined: 17 May 2006
Posts: 310

PostPosted: Wed May 02, 2007 7:48 pm    Post subject:
Reply with quote

Error Code : SOC4

Reason : This ABEND is caused by a hardware detected virtual address translation error, or a storage protection violation.

Description : Possible causes for this abend include: 1. Invalid address was referenced due to subscript error or bad parameter passed, 2. In group move, receiving record variable length defined incorrectly, 3. Tried moving variable length record that was larger than target field size, 4. Tried to read or write a file which was not open, 5. Used DD DUMMY with logic that moves high values to FD, 6. Tried to call within COBOL SORT I/O procedure, 7. Tried to goback in the SORT output procedure.

System Action : The system abnormally ends the task, unless a recovery routine was provided to handle the interruption. The hardware action is given in Principles of Operation.

User Reaponse : Correct the program logic error that generated the invalid address or storage reference. When analyzing the dump, Check to ensure that your program is obtaining, using, and freeing storage properly. Moving data to a zero address or to an address less than 512 (decimal) is a very frequent cause of this abend.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed May 02, 2007 8:22 pm    Post subject:
Reply with quote

Hello,

A cursor open should not present an 0c4. Subsequent code may fail and that may generate an 0c4.

Is the program possibly performing an internal sort? An ungraceful exit from an internal sort often causes an 0c4.
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to force a select query to abend neo4u DB2 5 Mon Apr 23, 2018 1:36 pm
No new posts Need help with 002-030 ABEND in TSO R... Terry Tallian TSO/ISPF 0 Sat Mar 17, 2018 1:13 am
No new posts Need help with ABEND RC=S806 RSN=4 an... chong.zhou All Other Mainframe Topics 3 Fri Feb 09, 2018 12:17 am
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am
No new posts -502 Error - Cursor already open anand jeyapaul DB2 7 Sun Oct 29, 2017 4:22 am

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