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

S0C4 abend while trying to open an empty cursor


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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
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

Moderator Emeritus


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

PostPosted: Wed May 02, 2007 8:22 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts ISAM and abend S03B JCL & VSAM 10
No new posts Calling an Open C library function in... CICS 1
No new posts Open VSAM File in IMS DC Region - DFS... IMS DB/DC 0
No new posts Insert trailer for non empty file only DFSORT/ICETOOL 6
No new posts Abend S0C4 11 (Page Translation Excep... PL/I & Assembler 16
Search our Forums:

Back to Top