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
 

 

Job abending with JCL Error saying RC=8, Reason code=40

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
kapil dev arora

New User


Joined: 29 Dec 2008
Posts: 37
Location: india

PostPosted: Fri Sep 25, 2009 11:53 am    Post subject: Job abending with JCL Error saying RC=8, Reason code=40
Reply with quote

This is the message in JESNSGLG

IGD17100I UNEXPECTED CATALOG ERROR FOR DATA SET 045
APRFI.AP.BBGC.CHCKHIST.VTS.G0171V00
RETURN CODE IS 8 REASON CODE IS 40 IGG0CLEH

This is the JCL Step

//JS10 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=APRFI.AP.BBGC.CHCKHIST.G0171V00,
// DISP=SHR
//SYSUT2 DD DSN=APRFI.AP.BBGC.CHCKHIST.VTS.G0171V00,
// DISP=(NEW,CATLG,DELETE),
// UNIT=VTSTAPE,
//* VOL=SER=VOLSER,
//* SPACE=(CYL,(200,200),RLSE),
// DCB=(*.SYSUT1)

*We do not have a GDG base for dataset SYSUT2.

Thanks,
Kapil.
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: Fri Sep 25, 2009 11:59 am    Post subject:
Reply with quote

And which manuals have you accessed to find out why.

May I suggest that you build an appropriate GDG base to process GDS elements icon_rolleyes.gif
Back to top
View user's profile Send private message
Ketan Varhade

Active User


Joined: 29 Jun 2009
Posts: 197
Location: Mumbai

PostPosted: Fri Sep 25, 2009 12:28 pm    Post subject:
Reply with quote

You need to have a base before processing any GDG file,


Quote:
//SYSUT1 DD DSN=APRFI.AP.BBGC.CHCKHIST.G0171V00,
// DISP=SHR
//SYSUT2 DD DSN=APRFI.AP.BBGC.CHCKHIST.VTS.G0171V00,


How did you make generation till 171, is there are any earlier genration present i.e -1 generation?
Back to top
View user's profile Send private message
kapil dev arora

New User


Joined: 29 Dec 2008
Posts: 37
Location: india

PostPosted: Fri Sep 25, 2009 12:38 pm    Post subject:
Reply with quote

The message IDC3009I, seems appropriate for the error we are getting.

we created GDG Base. Did a few more changes which are

1) changed Disposition to DISP=(NEW,KEEP,KEEP), Job is successful. But we are not able to see the the newly created dataset. Or it doesnot exist.

This is the only message this time but i dont think its of much help.

IEC205I SYSUT2,CPKDA1,JS10,FILESEQ=1, COMPLETE VOLUME LIST,
DSN=APRFI.AP.BBGC.CHCKHIST.VTS.G0171V00,VOLS=N45997,TOTALBLOCKS=104565
IEF142I CPKDA1 JS10 - STEP WAS EXECUTED - COND CODE 0000
IEF285I PSFIN.CPKDA1.JOB43575.D0000101.? SYSOUT
IEF285I APRFI.AP.BBGC.CHCKHIST.G0171V00 KEPT
IEF285I VOL SER NOS= C37309,C38686,C26361,C31208.
IEF285I APRFI.AP.BBGC.CHCKHIST.VTS.G0171V00 KEPT
IEF285I VOL SER NOS= N45997.

Thanks,
Kapil.
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: Fri Sep 25, 2009 12:43 pm    Post subject:
Reply with quote

Like Derrrrrrrrrrrrrr, if you don't catalog the damned thing how do you expect to see it in a catalog list ???
Back to top
View user's profile Send private message
Ketan Varhade

Active User


Joined: 29 Jun 2009
Posts: 197
Location: Mumbai

PostPosted: Fri Sep 25, 2009 12:51 pm    Post subject:
Reply with quote

Change the DISP pram to NEW,CATLG,KEEP
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Fri Sep 25, 2009 1:06 pm    Post subject: Reply to: Job abending with JCL Error saying RC=8, Reason c
Reply with quote

... and GOTO the initial post icon_biggrin.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Sep 25, 2009 1:17 pm    Post subject:
Reply with quote

LOL- and then little up to reach the IBM (JCL) Manulas Link ... icon_smile.gif
Back to top
View user's profile Send private message
kapil dev arora

New User


Joined: 29 Dec 2008
Posts: 37
Location: india

PostPosted: Fri Sep 25, 2009 2:02 pm    Post subject:
Reply with quote

Thanks All,

It was just because of GDG base was not there and Disp need to be made CATLG for normal termination. Its working now.

Thanks,
Kapil.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Sep 25, 2009 3:00 pm    Post subject:
Reply with quote

Great, glad to hear that you got it working... 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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts IDC2902I Error tzeche ABENDS & Debugging 2 Tue Mar 28, 2017 11:39 am


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