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 - 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: 8684
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
This topic is locked: you cannot edit posts or make replies. Rexx code to find greater then symobl... Bharath Vikraman CLIST & REXX 8 Tue May 29, 2018 9:40 am
No new posts How to convert 2 bytes into single by... pkmurali DB2 6 Fri May 25, 2018 1:41 pm
No new posts Cobol program till a given time or fo... ankita agarwal COBOL Programming 7 Fri May 18, 2018 2:24 pm
No new posts Program usage statistics? John Poulakos CICS 6 Wed May 16, 2018 2:22 am
No new posts Error executing Java program in OSGI ... danik56 CICS 0 Thu Apr 26, 2018 12:16 am

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