MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

REPRO GDG not getting the latest version

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
davinski.bby
Beginner


Joined: 30 Jul 2007
Posts: 31
Topics: 10

PostPosted: Fri Jan 25, 2008 4:46 pm    Post subject: REPRO GDG not getting the latest version Reply with quote

Hi,

I am having some issues with REPRO in a GDG dataset.

Here is a part of the JCL that is being executed:

Code:

//STEP010  EXEC    PGM=CREATGDG
//SYSOUT   DD      SYSOUT=&UTLMSG
//SYSPRINT DD      SYSOUT=&UTLMSG
//SYSUDUMP DD      SYSOUT=&DUMP
//*
//I06M430F DD      DSN=GDGFILE.GDG(+1),
//             DISP=(NEW,CATLG,DELETE),
//             UNIT=SYSDA,
//             SPACE=(TRK,(15,15),RLSE),
//             DCB=(RECFM=FB,LRECL=501,BLKSIZE=0)
//**** REPRO *****
//STEP020  EXEC    PGM=IDCAMS,COND=(0,NE)
//SYSUDUMP DD      SYSOUT=D
//SYSPRINT DD      SYSOUT=*
//*
//INDD1    DD      DSN=GDGFILE.GDG(0),
//             DISP=SHR
//OUTDD1   DD      DSN=NEWGDG.FILE(+1),
//             DISP=(NEW,CATLG,DELETE),
//             UNIT=SYSDA,
//             SPACE=(TRK,(15,15),RLSE),
//             DCB=(MODELGDG,RECFM=FB,LRECL=501,BLKSIZE=0)


I need to get the latest GDG version created by the previous step and repro it to the NEWGDG.
The problem is it is not getting the latest version created but the the second to the latest version. I checked my logs/sysmsg and found the following:

Code:


IGD107I GDGFILE.GDG.G0012V00              ROLLED IN, (this is the latest file created by the STEP010)

IGD104I GDGFILE.GDG.G0011V00          RETAINED, (this is the previous version) 
IGD107I NEWGDG.FILE.G0001V00              ROLLED IN,



It is not getting the latest version GDGFILE.GDG.G0012V00 instead it is getting GDGFILE.GDG.G001V00

Thanks.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Jan 25, 2008 5:22 pm    Post subject: Reply with quote

davinski.bby,

If you are referring the GDG created in the same Job make sure that all steps refer to +1 instead of 0 gen.

Code:

//INDD1    DD      DSN=GDGFILE.GDG(+1),  <=== +1 here also
//             DISP=SHR
//OUTDD1   DD      DSN=NEWGDG.FILE(+1),
//             DISP=(NEW,CATLG,DELETE),
//             UNIT=SYSDA,
//             SPACE=(TRK,(15,15),RLSE),
//             DCB=(MODELGDG,RECFM=FB,LRECL=501,BLKSIZE=0)


If for some reason ur step010 or step020 abended then you need to change the version number if you want to restart

Hope this helps...
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
davinski.bby
Beginner


Joined: 30 Jul 2007
Posts: 31
Topics: 10

PostPosted: Fri Jan 25, 2008 5:34 pm    Post subject: Reply with quote

Thanks Kolusu! It worked!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group