View previous topic :: View next topic |
Author |
Message |
ibmprofessional Beginner
Joined: 23 Mar 2003 Posts: 2 Topics: 2
|
Posted: Sun Mar 23, 2003 2:07 am Post subject: Generation Data Groups |
|
|
Hi all,
Is GDG applicable only to vsam dataset or can it be applied even to non vsam datasets ..Kindly explain.
with regards,
ARV |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
Premkumar Moderator
Joined: 28 Nov 2002 Posts: 77 Topics: 7 Location: Chennai, India
|
Posted: Sun Mar 23, 2003 11:26 pm Post subject: |
|
|
To add to the info on that link, GDGs can be PDS too. |
|
Back to top |
|
|
raj051076 Beginner
Joined: 05 Dec 2002 Posts: 64 Topics: 21
|
Posted: Sat Mar 29, 2003 1:42 pm Post subject: |
|
|
Prem how can I define a GDG to use it as a PDS...DO u have an example..Thanks in advance _________________ Rajib |
|
Back to top |
|
|
Premkumar Moderator
Joined: 28 Nov 2002 Posts: 77 Topics: 7 Location: Chennai, India
|
Posted: Mon Mar 31, 2003 6:07 am Post subject: |
|
|
Rajib,
Define the PDS-GDG base as you do for PS-GDG base.
Code: |
//STEP01 EXEC PGM=IDCAMS
//SYSIN DD *
DEFINE GENERATIONDATAGROUP -
(NAME(FDR5618.TEST.PDS.GDG) -
LIMIT(5) -
NOEMPTY -
NOSCRATCH -
)
//SYSPRINT DD SYSOUT=*
|
Create the PDS generations as you do for normal PDS.
Code: |
//STEP02 EXEC PGM=IEFBR14
//PDSGDG DD DISP=(,CATLG,DELETE),
// UNIT=SYSDA,SPACE=(TRK,(4,1,2),RLSE),
// LRECL=80,RECFM=FB,
// DSN=FDR5618.TEST.PDS.GDG(+1)
|
|
|
Back to top |
|
|
Bill Dennis Advanced
Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Mon Mar 31, 2003 8:42 am Post subject: |
|
|
I had to try the PDS GDG for myself. You cannot specifiy BOTH a member name and a relative GDG number at the same time. However the DSN=GDG.BASE.G0001V00(member) seem to work OK. Way to go, premukmar!
Bill |
|
Back to top |
|
|
|
|