Site icon TechTricky: A Technology Blog on HTML, CSS, JQuery, Webaps and How to\'s

Sample RUN JCL for COBOL Program

Sample RUN JCL for a COBOL Program – In Mainframes area any batch COBOL program needs to have its corresponding JCL to run it without which it can not be executed. As we know JCL is a JOb Control Language which is used to run and control the execution of the programs. So JOB written in JCL is must to execute any batch COBOL program, The job used to run it is called a RUN JCL. Below example shows a sample Run JCL for a  program named ‘CUSTR001’.  CUSTR001  is developed to have one input file and it generates one output file using the input file records. As it uses two files, these files should also be be specified in the RUn JCL.

----+----1----+----2----+----3----+----4----+----5----+----6----+----7--
//CUSTJB01 JOB (990A5,'25/06/19',ACNTCR),'MAHENDER',MSGCLASS=D, 
// CLASS=A,TIME=10,NOTIFY=&SYSUID 
//***************************************************************** 
//* JOB TO RUN THE PGM CUSTR001 
//*************************************************************** 
//STEP01 EXEC PGM=CUSTR001 
//STEPLIB DD DSN=CUST.PR.LOADLIB,DISP=SHR 
//CUSTIN  DD DSN=CUST.FL.EXT.IN01,DISP=SHR 
//CUSTOUT DD DSN=CUST.FL.EXT.RPT01,UNIT=SYSDA, 
//           DISP=(NEW,CATLG,DELETE),SPACE=(CYL,(1,1),RLSE), 
//           DCB=(RECFM=FB,LRECL=40,BLKSIZE=0) 
//SYSPRINT DD SYSOUT=* 
//SYSOUT DD SYSOUT=A 
//

First two line of the JOB are called JOB card and more information on the job card can be found at JCL JOB Card

Notes:

Exit mobile version
Close Bitnami banner
Bitnami