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: 8596
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 Calling IKJEFT01 program from Rexx upendrasri CLIST & REXX 4 Wed Nov 15, 2017 4:27 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm

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