{" "} JCL Job Control Programming Help by Programmers hub

JCL Job Control Language

JCL is a job control language for IBM mainframe systems which runs the MVS operating systems. MVS (Multiple Virtual Systems ) may refer as a linux and JCL as a shell of the linux. Without JCL you can't able to run a job on the MVS operating system. Every JCL statement start with the two forward slashes // . Jcl is simple language and have simple programming procedures. It consist of the many keyword parameters.

Keyword Parameter of JCL Language

className : className keyword use to tell the OS about the nature of job we are submitting.

syntax : className=jobclass

PRTY : It assign priorities to the jobs which are belong to same className. 

Syntax : PRTY=priority

MSGCLASS : The MSGCLASS parameter determines the output device to which the output is to given 

Syntax : MSGCLASS=output-className-name

MSGLEVEL : it tells the jcl which output to be print in the device 

Syntax : MSGLEVEL=(statement, messages)

TYPRUN : This commad is run to specify whether job is to be held until further notice or for sytx checking 

Syntax : TYPRUN=HOLD or TYPRUN=SCAN

JCL Code Example

{`
//SYSPRINT DD  SYSOUT=* 
//SYSUT1   DD  SPACE=(CYL,(10,10)),UNIT=SYSDA 
//SYSLMOD  DD  DSN=MTLUSR.XPLINK.LOAD,DISP=SHR 
//SYSLIB   DD  DSN=CICSTS41.CICS.SDFHLOAD,DISP=SHR 
//         DD  DISP=SHR,DSN=MTLUSR.METAL.OBJ 
//         DD  DISP=SHR,DSN=MTLUSR.METALC.SCCNOBJ 
//USROBJ   DD  DSN=MTLUSR.METAL.OBJ,DISP=SHR 
`}