0% found this document useful (0 votes)
62 views2 pages

Output

The document discusses creating and modifying JCL files. It shows examples of JCL used to create new datasets, delete cataloged and uncataloged datasets, and use a temporary dataset with the DISP parameter set to NEW, PASS, and DELETE. The document contains multiple examples of JCL code snippets and the commands used to view, edit, and delete related files.

Uploaded by

muthuprakashmca
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views2 pages

Output

The document discusses creating and modifying JCL files. It shows examples of JCL used to create new datasets, delete cataloged and uncataloged datasets, and use a temporary dataset with the DISP parameter set to NEW, PASS, and DELETE. The document contains multiple examples of JCL code snippets and the commands used to view, edit, and delete related files.

Uploaded by

muthuprakashmca
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

File: /home/proed/Desktop/new file Page 1 of 2

Create PS dataset

VIEW P390A.CHRIS.JCL Columns 00001 00072


Command ===> Scroll ===> CSR
****** ***************************** Top of Data ******************************
000001 //P390A2 JOB NOTIFY=&SYSUID
000002 //STEP1 EXEC PGM=IEFBR14
000003 //SYSPRINT DD SYSOUT=*
000004 //DD1 DD DSN=P390A.BOB.JCL,DISP=(NEW,CATLG,DELETE),
000005 // UNIT=SYSDA,SPACE=(TRK,(2,4)),
000006 // DCB=(LRECL=80,RECFM=FB,BLKSIZE=800),VOL=SER=USER01
000007 //SYSIN DD DUMMY
****** **************************** Bottom of Data ****************************

display output

EDIT P390A.PROGRAM.JCL1(WRSPOOL) - 01.00 Columns 00001


Command ===> Scroll ===>
****** ***************************** Top of Data ************************
000100 //MYJOB2 JOB NOTIFY=&SYSUID
000200 //ST1 EXEC PGM=IEBGENER
000300 //SYSPRINT DD SYSOUT=*
000400 //SYSUT2 DD SYSOUT=*
000500 //SYSUT1 DD *
000600 THIS IS JCL
000700 HELLO
000800 BYE
000900 /*
001000 //SYSIN DD DUMMY
001100 //
****** **************************** Bottom of Data **********************

Delete the catlg file

EDIT P390A.BOB1.JCL Columns 00001 00072


Command ===> Scroll ===> CSR
****** ***************************** Top of Data ******************************
000001 //P390A9 JOB NOTIFY=&P390A
000002 //STEP1 EXEC PGM=IEFBR14
000003 //DD1 DD DSN=P390A.VANI7.PS,DISP=(OLD,DELETE),
000004 // UNIT=SYSDA,
000005 // SPACE=(TRK,(2,2)),
000006 // DCB=(LRECL=80,RECFM=FB,BLKSIZE=800),
000007 // VOL=SER=USER02
000008 //SYSPRINT DD SYSOUT=*
000009 //SYSIN DD DUMMY
****** **************************** Bottom of Data ****************************

Delete the uncatlg dataset

VIEW P390A.ANN.JCL(DHIDDEN) - 01.00 Columns 00001 00072


Command ===> Scroll ===> CSR
****** ***************************** Top of Data ******************************
000001 //P390A8 JOB NOTIFY=&SYSUID
000002 //STEP1 EXEC PGM=IEFBR14
000003 //DD1 DD DSN=P390A.MIKE.JCL,DISP=(NEW,UNCATLG,DELETE),
000004 // UNIT=SYSDA,SPACE=(TRK,(2,2)),
000005 // DCB=(LRECL=80,RECFM=FB,BLKSIZE=800),
File: /home/proed/Desktop/new file Page 2 of 2

000006 // VOL=SER=USER01
000007 //SYSPRINT DD SYSOUT=*
000008 //SYSIN DD DUMMY
****** **************************** Bottom of Data ****************************

dd statement for temporary dataset


-
=========================================

EDIT P390A.DAN.PDS(TEMP) - 01.02 Columns 00001 00072


Command ===> Scroll ===> CSR
****** ***************************** Top of Data ******************************
000100 //P390A5 JOB NOTIFY=&SYSUID
000200 //STEP1 EXEC PGM=IEBGENER
000300 //SYSUT1 DD DSN=PM90A.DAN.PDS(EMP1)
000400 //SYSUT2 DD DSN=P390A.DAN.PDS(EMP2)
000800 //STEP2 EXEC PGM=IEBGENER
000900 //SYSUT1 DD DSN=&&TEMP,DISP=(NEW,PASS,DELETE),
001100 // UNIT=SYSDA,SPACE=(TRK,(5,5)),
001200 // DCB=(LRECL=80,RECFM=FB,BLKSIZE=800),
001300 // VOL=SER=USER01
001500 //SYSUT2 DD DSN=P390A.DAN.PDS(EMP4)
001600 //SYSPRINT DD SYSOUT=*
001700 //SYSIN DD DUMMY
****** **************************** Bottom of Data ****************************

EDIT P390A.DAN.PDS(TEMP) - 01.02 Columns 00001 00072


Command ===> Scroll ===> CSR
****** ***************************** Top of Data ******************************
000100 //P390A5 JOB NOTIFY=&SYSUID
000200 //STEP1 EXEC PGM=IEBGENER
000300 //SYSUT1 DD DSN=PM90A.DAN.PDS(EMP1),DISP=OLD
000400 //SYSUT2 DD DSN=P390A.DAN.PDS(EMP2),DISP=OLD
000800 //STEP2 EXEC PGM=IEBGENER
000900 //STEP1.SYSUT2.SYSUT2 DD DSN=&&TEMP,DISP=(NEW,PASS,DELETE),
001500 //SYSUT2 DD DSN=P390A.DAN.PDS(EMP4),DISP=OLD
001600 //SYSPRINT DD SYSOUT=*
001700 //SYSIN DD DUMMY
****** **************************** Bottom of Data ****************************

You might also like