Preferred way of creating a PDS?
Posted: Thu Nov 12, 2015 11:51 am
In a recent interview I was asked: How to create a PDS through JCL?
I said, there are many ways of doing it. for example we can create it using IEBGNER an gave a symbolic representation of the following JCL:
To this interviewer said, I can also do this using:
Given the choice, which JCL you'll use to create the PDS?
Well I was like... . Can someone on the ite please suggest what could be the answer.
I said, there are many ways of doing it. for example we can create it using IEBGNER an gave a symbolic representation of the following JCL:
Code: Select all
//STEP010 EXEC PGM=IEBGENER
//SYSUT1 DD DUMMY,
// DCB=(LRECL=80,BLKSIZE=0,RECFM=FB,DSORG=PO)
//SYSUT2 DD DSN=some.File.name,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(CYL,(5,5),RLSE),
// DCB=(LRECL=80,BLKSIZE=0,RECFM=FB,DSORG=PO)
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD DUMMY
Code: Select all
//STEP011 EXEC PGM=IEFBR14
//DD1 DD DSN=DSNNAME,SPACE=(TRK,(2,1,1)),UNIT=SYSDA,
// DCB=(DSORG=PO,LRECL=80,RECFM=FB,BLKSIZE=800)
// DISP=(NEW,CATLG,DELETE)
//
Well I was like... . Can someone on the ite please suggest what could be the answer.