Weird that it created generation 1 correctly (as a VSAM file), but only that 
generation seems to work.  Oh well!
Thanks,
Frank
________________________________
From: IBM Mainframe Discussion List <[email protected]> on behalf of 
Richard McIntosh <[email protected]>
Sent: Tuesday, September 26, 2023 11:32 AM
To: [email protected] <[email protected]>
Subject: Re: VSAM GDG

GDG's are for sequential files. You can make a backup of a VSAM to a sequential 
GDG though.
To create a new gen you should be using PROD.CVSC.AHI.BKP(+1)



-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Frank Swarbrick
Sent: Tuesday, September 26, 2023 12:27 PM
To: [email protected]
Subject: [External] : VSAM GDG

Are VSAM GDGs supported?  I created the GDG base using the JCL below and was 
able to create the first generation, but when I run that job again it tries to 
create generation 1 again, giving me a JCL error because the GDS already exists.


//DEFGDG   JOB ,'DEFINE AHI GDG

//DEFINE   EXEC PGM=IDCAMS

//SYSPRINT DD SYSOUT=*

//SYSIN    DD  *

 DELETE (PROD.CVSC.AHI.BKP)

 IF MAXCC LE 8 THEN SET MAXCC=0

DEFINE GDG ( -

     NAME(PROD.CVSC.AHI.BKP) -

     LIMIT(5) -

     SCRATCH -

 )


Thanks,

Frank

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to