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

S0C4 - When and why did it occur in the program?


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
guruguha

New User


Joined: 02 Apr 2007
Posts: 12
Location: Chennai

PostPosted: Mon Apr 02, 2007 4:25 pm
Reply with quote

Hi,
For an input file in cobol, if the input DD name in the JCL doesnt exist in the code, I expected to abend by S0C4. Instead it abended by S000 saying File status of input was 35(there was file-handling for this in the program).
My question is why when will it fail by S0c4?
Please explain abt. s0c4.

Thanks,
Karthikeyan icon_biggrin.gif
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Apr 02, 2007 4:37 pm
Reply with quote

The system is not stupid. It attempted to open a file that had no DD and reported that back to the program.
What sort of 0C4 are trying to get and why?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Apr 02, 2007 4:42 pm
Reply with quote

What's a S0C4
Keeping your foot warm !!!!!
Back to top
View user's profile Send private message
Vineet Joshi

New User


Joined: 11 Dec 2006
Posts: 7
Location: Bhubaneswar

PostPosted: Mon Apr 02, 2007 5:21 pm
Reply with quote

S0C4 means address exception error.
S0C4 is a type of abend which may occur due to the following reasons.

Bad Subscript/Index

Read/Write attempt to unopened file

Move data to/from unopened file

Missing parameters in called subprogram
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: Mon Apr 02, 2007 8:01 pm
Reply with quote

Hello,

Is there some reason you expected an 0c4 when the DD was missing? Why did you have that expectation?

I'm not sure we've answered your question icon_smile.gif
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top