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

S0C4 Error


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
elango_K

New User


Joined: 18 Aug 2011
Posts: 44
Location: India

PostPosted: Tue Oct 04, 2011 11:17 pm
Reply with quote

I am trying to execute a job and it abends with S0C4error.

When I execute the following code it executes successfully.
Code:

//STEP005 EXEC JMRSCAN,OPTNLIBJ=SYS3.JMR.PPOPTION,OPTNMEMJ=PK46OPTN
//JMRIN    DD *                                                   
FUNCTION JOBNAME=PDP0U097 JOB=4949 SDATE=-0"  EDATE=-0"           
FUNCTION JOBNAME=PNF0H620 JOB=2718 SDATE=-0"  EDATE=-0"           
//JMRPRINT DD SYSOUT=*                                             
//*                                                             


However when I try to capture my output to a flat file it fails.

Code:

//STEP005 EXEC JMRSCAN,OPTNLIBJ=SYS3.JMR.PPOPTION,OPTNMEMJ=PK46OPTN
//JMRIN    DD DSN=PNF.TAPE.JMRIN2,DISP=SHR                         
//JMRPRINT DD DSN=PNF.TAPE.JMROU4,DISP=SHR                         
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Tue Oct 04, 2011 11:35 pm
Reply with quote

And what is the reason code associated with the abend?

And what are the DCBs of the data sets?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Oct 04, 2011 11:39 pm
Reply with quote

the chances of getting help with the nothing You posted are pretty slim

why not look at the JMR.... manuals to see what is expected as far as the DCBs are concerned

for the input dataset most probably dcb=(recfm=fb,lrecl=80,blksize=....)
for the output something along the lines of rcfm=FBA/FBM, lrecl=121/133, blksize a proper multiple

but the JMR... manuals will certainly be the best source of info
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Wed Oct 05, 2011 12:28 am
Reply with quote

Did the file OPEN successfully?

What program/utility are you executing?

More information is needed....

Mr. Bill
Back to top
View user's profile Send private message
elango_K

New User


Joined: 18 Aug 2011
Posts: 44
Location: India

PostPosted: Wed Oct 05, 2011 4:15 pm
Reply with quote

the abend detail is as follows.

Code:

JOB JMRTIME2         STEP CAPKSCAN        TIME 114343   DATE 11278    ID = 000
COMPLETION CODE      SYSTEM = 0C4      REASON CODE = 00000010                 
                                                                               
  PSW AT ENTRY TO ABEND   078D0000  00D47A84  ILC  04  INTC  0010             
PSW LOAD MODULE             ADDRESS = 00D42000  OFFSET = 00005A84             
NAME=IGG0193B                                                                 


Can you also share the link to JMR manuals.
Back to top
View user's profile Send private message
elango_K

New User


Joined: 18 Aug 2011
Posts: 44
Location: India

PostPosted: Wed Oct 05, 2011 4:22 pm
Reply with quote

File parameters:

Input file:
FB, Record length :130

Output file:
FBA,Rec Len 133
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Oct 05, 2011 4:27 pm
Reply with quote

go back to the jesmsgs and find where in the step,
the file open was attempted.
there will be some kind of a message
for either: jmrin or jmrprint.
your 0C4 was probably a result of a bad open.

and if your site has a CA license for JMR, it does have the manuals,
or access to them.

by the way, do not in the future post what you considered abend details,
again.
thx
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Oct 05, 2011 4:28 pm
Reply with quote

still nothing to work on...

if the <thing> works with
Code:
.... dd *
.... dd sysout=*


and does not work with what look like preallocated datasets
look into the <dataset> differences , most probalbly DCB differences

but You were already told so and You just did not give a shit about it

no we cannot post the links or the material itself because it is copyrighted
ad that company does not have the IBM good manners to give free access to the manuals

but on the other side if Your organization is licensed for the JMS... <thing>
its manuals will certainly available somewhere
why not ask Your support about them
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Oct 05, 2011 4:31 pm
Reply with quote

follow on ...
for ... DD * datasets the LRECL is 80

did it strike You the idea that an lrecl 130 dataset for input might get into trouble ..
and yield the abend ???

oh i see, it did not, too much strain on Your neurons icon_cool.gif
Back to top
View user's profile Send private message
elango_K

New User


Joined: 18 Aug 2011
Posts: 44
Location: India

PostPosted: Wed Oct 05, 2011 7:14 pm
Reply with quote

All,

The problem was the parameters of input and output file as suggested.
I corrected the same and the issue was resolved.
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 Oct 05, 2011 7:34 pm
Reply with quote

Good to hear it is working - thank you for letting us know icon_smile.gif

d
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Getting Error while trying to establi... DB2 3
Search our Forums:

Back to Top