How to catalog a JCL member into a PDS?
search cancel

How to catalog a JCL member into a PDS?

book

Article ID: 26656

calendar_today

Updated On:

Products

FAQS - Automated Systems Operation

Issue/Introduction

This utility is useful when JCL is stored in ICCF or Vollie and the user wants to move a copy of it to a PDS for testing. It eliminates the need to copy and paste the JCL.

 

Environment

Release: 5.1
Component: FAQS-Automated Systems Operation

Resolution

The JCLMAINT utility is used to catalog JCL in to a PDS member. 

Example:

This JCL will catalog a sort job into A PDS called STG.

* $$ JOB JNM=JCLMAINT,CLASS=0,DISP=D 
* $$ LST CLASS=V,DISP=D
// JOB JCLMAINT
// LIBDEF *,SEARCH=CAI6.FAQS50
// EXEC PROC=JCLMAINT
./ ADD STG:SORTJCL.JCL
* DD JOB JNM=SORTJCL,CLASS=0,DISP=K
* DD LST CLASS=A,DISP=D
// JOB DIRLIST
// DLBL SORTIN1,'SORT.FILE'
// DLBL SORTOUT,'SORTOUT.FILE'
// DLBL SORTWK1,'SORT.WORK.SPACE',,,BLKSZ=OPT
// EXEC SORT,SIZE=256K
SORT FIELDS=(1,4,CH,A),WORK=1
OPTION STORAGE=64K
RECORD TYPE=F,LENGTH=14000
END
/*
/&
DD EOJ
./ END
/*
/&
* $$ EOJ JCLMAINT