Test JCL without submitting it.

How can I test JCL without submitting it? Like scanning it b4 submitting.

Questions by Esolly

Showing Answers 1 - 6 of 6 Answers

tag_tushar

  • Oct 10th, 2010
 

You can use a JOB card keyword parameter TYPRUN=SCAN. This parameter suppresses the execution of the JCL & check's your JCL for errors. You will get a MAXCC=4 or 8 or 12 if there are any error in your JCL. But if you have a get a Message ==> JCLINTERNAL ERROR. This means that your JCL is almost error free.

NOTE: THE JOB WILL NOT EXECUTE WHEN THIS PARAMETER IS USED EVEN IF THERE IS NO ERROR. TO EXECUTE THE JCL YOU HAVE TO REMOVE THIS PARAMETER FROM YOUR JOB AND THEN SUBMIT IT AGAIN.

Eg:

To test JCL without submitting:
//JOBNAME JOB NOTIFY=&SYSUID,PRTY=15,TYPRUN=SCAN
//STEP1 EXEC PGM=IEFBR14
//DD1 DD DSN=ABC.XYZ.PS,DISP=(NEW,CATLG,DELETE),
// DCB=(LRECL=80,BLKSIZE=800,RECFM=FB),
// SPACE=(TRK,(10,10),RLSE)
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY

To execute the JCL
//JOBNAME JOB NOTIFY=&SYSUID,PRTY=15
//STEP1 EXEC PGM=IEFBR14
//DD1 DD DSN=ABC.XYZ.PS,DISP=(NEW,CATLG,DELETE),
// DCB=(LRECL=80,BLKSIZE=800,RECFM=FB),
// SPACE=(TRK,(10,10),RLSE)
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions