Create GDG

How to create a GDG through JCL?

Questions by satya.job

Showing Answers 1 - 3 of 3 Answers

tag_tushar

  • Jun 19th, 2010
 

In order to creata a GDG, you need to create 2 seprate JLC :

1)First JCL upon being submitted will create the base file
 //JOB1 JOB NOTIFY=&SYSUID
 //STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
  DEFINE GDG              -
  (                                -
   NAME(ABC.PS.BASE) -
   NONEMPTY               -
   LIMIT(5)                   -
   SCRATCH                  -
  )
/*

2)Second JCL will create the different version of the file (ABC.PS.BASE) upon being submitted again n again...
//JOB2 JOB NOTIFY=&SYSUID
//STEP1 EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//DD1 DD DSN=ABC.PS.BASE(+1),DISP=(NEW,CATLG,DELETE),
//             DCB=(LRECL=80,RECFM=FB,BLKSIZE=800),UNIT=SYSDA,
//             SPACE=(TRK,(1,1),RLSE)
//SYSIN DD DUMMY
/*

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions