JCL Standards

Example DD Statement


//AB1005A  EXEC  GO,MEMBER=AB1005A,VER=PROD,TBLVER=PROD
//TMPFILE  DD    UNIT=SYSDA,
//         SPACE=(TRK,(100,50),
//         DCB=(RECFM=FB,LRECL=80,BLKSIZE=6160)

This example shows use of a temporary file created in this step that is not to be used in other steps. The DISP parameter is not necessary as it defaults to (NEW,DELETE). The DSN parameter is unnecessary because the system will assign a temporary name. The DCB parameter generally is not needed for temporary files created and used by Easytrieve Plus programs. In addition, Easytrieve Plus programs have the ability to use virtual files, making this type of temporary file unnecessary in most instances.

For a temporary tape dataset, change UNIT=DISK to UNIT=TAPE. Use of tapes for temporary datasets like this is discouraged.


Last Modified: