The MSGLEVEL parameter in JCL controls the amount of information included in the job output. It determines whether JCL statements and allocation/deallocation messages are included in the job log, and it specifies which job and step termination messages are generated.
1//jobname JOB (accounting-information),programmer-name,MSGLEVEL=(statements,messages)
The MSGLEVEL parameter consists of two sub-parameters:
1//PAYROLL JOB (ACCT123),'JOHN SMITH',MSGLEVEL=(1,1)
Shows JCL statements, allocation messages, job and step termination messages (default)
1//REPORT JOB (ACCT456),'JANE DOE',MSGLEVEL=(0,0)
Only shows JCL errors and job termination messages (minimal output)
1//COMPILE JOB (ACCT789),'DEVELOPER',MSGLEVEL=(2,1)
Shows JCL statements, no allocation messages, but includes job and step termination messages
1//DEVEL JOB (ACCT321),'TEST USER',MSGLEVEL=1
Specifying only the first subparameter (1) uses default (1) for the second subparameter
MSGLEVEL | Description | Usage |
---|---|---|
(1,1) | All information (default) | Development, troubleshooting, debugging |
(0,1) | No JCL, but all messages | Production jobs where JCL is already verified |
(0,0) | Minimal output | Production jobs with minimal logging needs |
(2,1) | JCL only, no allocation messages | When you need JCL echo but not allocation details |