Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: S0C4 - When and why did it occur in the program?
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: 3158
Location: Tucson AZ

PostPosted: Mon Apr 02, 2007 4:37 pm    Post subject: Re: S0C4 - Why did it not occur?
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: 8593
Location: Back in jolly old England

PostPosted: Mon Apr 02, 2007 4:42 pm    Post subject:
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    Post subject: Re: S0C4 - Why did it not occur?
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

Site Director


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

PostPosted: Mon Apr 02, 2007 8:01 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 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 A sample of exit program for exit XMN... lind sh CICS 2 Mon Oct 03, 2016 5:07 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us