How to populate a new DATASET in JCL?
Posted: Mon Mar 06, 2017 11:58 pm
If I allocate a DATASET in JCL, either manually, or with IDCAMS, such as:
How can I populate that file with some initial content, such as that from an INLINE DD, like SYSIN above, so that I can use that file in a subsequent JCL step?
Code: Select all
//VSAMCR JOB
//DEFINE EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSTERM DD SYSOUT=*
//SYSIN DD *
DEFINE CLUSTER (NAME(PJVSAM00.00000000) -
CYLINDERS(1) VOLUMES(LZ0000) -
INDEXED KEYS(10 179) -
RECORDSIZE(240 240) -
) -
DATA (NAME(PJVSAM00.00000000.DATA)) -
INDEX (NAME(PJVSAM00.00000000.INDEX))
/*