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 

handling GDG generation numbers

 
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
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Thu Feb 02, 2006 1:58 am    Post subject: handling GDG generation numbers Reply with quote

Hai All,

I have created a GDG base with limit as 3 generations and i have a jcl in which i am coping a input dataset to three generations in three steps .But the problem i having is i am getting the generations as 2,3,4 but i want it as 1,2,3.How can that be achieved?

JCL

Code:

//STEP0100 EXEC PGM=IEBGENER                                           
//SYSUT1   DD DSN=SHEKAR.TEST.INPUT,DISP=SHR                           
//SYSUT2   DD DSN=SHEKAR.WORK.GDG(+1),DISP=(NEW,CATLG,CATLG),         
//            VOL=(,,,99),UNIT=(SYSDA,8),                               
//            DCB=(RECFM=FB,LRECL=80),SPACE=(TRK,(1,1),RLSE)           
//SYSPRINT DD SYSOUT=*                                                 
//SYSOUT   DD SYSOUT=*                                                 
//*                                                                     
//STEP0200 EXEC PGM=IEBGENER                                           
//SYSUT1   DD DSN=SHEKAR.TEST.INPUT,DISP=SHR                           
//SYSUT2   DD DSN=SHEKAR.WORK.GDG(+2),DISP=(NEW,CATLG,CATLG),         
//            VOL=(,,,99),UNIT=(SYSDA,8),                               
//            DCB=(RECFM=FB,LRECL=80),SPACE=(TRK,(1,1),RLSE)           
//SYSPRINT DD SYSOUT=*                                                 
//SYSOUT   DD SYSOUT=*                                                 
//*                                                                     
//STEP0300 EXEC PGM=IEBGENER                                           
//SYSUT1   DD DSN=SHEKAR.TEST.INPUT,DISP=SHR                           
//SYSUT2   DD DSN=SHEKAR.WORK.GDG(+3),DISP=(NEW,CATLG,CATLG),         
//            VOL=(,,,99),UNIT=(SYSDA,8),                               
//            DCB=(RECFM=FB,LRECL=80),SPACE=(TRK,(1,1),RLSE)           
//SYSPRINT DD SYSOUT=*                                                 
//SYSOUT   DD SYSOUT=* 
//                                               


OUTPUT GDG NUMBERS

Code:

SHEKAR.WORK.GDG         
SHEKAR.WORK.GDG.G0002V00
SHEKAR.WORK.GDG.G0003V00
SHEKAR.WORK.GDG.G0004V00


DESIRED OUTPUT GDG NUMBERS

Code:

SHEKAR.WORK.GDG         
SHEKAR.WORK.GDG.G0001V00
SHEKAR.WORK.GDG.G0002V00
SHEKAR.WORK.GDG.G0003V00


_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
Mervyn
Moderator


Joined: 02 Dec 2002
Posts: 415
Topics: 6
Location: Hove, England

PostPosted: Thu Feb 02, 2006 4:59 am    Post subject: Reply with quote

Shekar, it works fine for me. Are you sure generation 1 did not exist prior to your job?
_________________
The day you stop learning the dinosaur becomes extinct
Back to top
View user's profile Send private message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Thu Feb 02, 2006 6:37 am    Post subject: Reply with quote

Mervyn,

I did not delete the number one generation dataset which was existing earlier and i deleted 2,3 and 4 and when i ran the job , i got the generations back to 2,3 and 4.So i deleted all the generations and ran the job which gave me correct generations 1,2 and 3.Thanks.
_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
German Castillo
Beginner


Joined: 23 Dec 2005
Posts: 83
Topics: 2
Location: Caracas, Venezuela

PostPosted: Thu Feb 02, 2006 7:34 am    Post subject: Reply with quote

Put in the GDG generation in front of your dtat generation job, and show us the output. Of course to test this out you will have to delete your previous GDG base cluster
_________________
Best wishes,

German Castillo
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