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

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


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Fri Sep 25, 2009 11:59 am
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
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
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: 8797
Location: Welsh Wales

PostPosted: Fri Sep 25, 2009 12:43 pm
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
Reply with quote

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Sep 25, 2009 1:06 pm
Reply with quote

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

Superior Member


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

PostPosted: Fri Sep 25, 2009 1:17 pm
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
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

Superior Member


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

PostPosted: Fri Sep 25, 2009 3:00 pm
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 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 run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
Search our Forums:

Back to Top