JCL Msglevel Parameter

JCL MSGCLASS Parameter JCL PRIORITY Parameter

Advertisements


MSGLEVEL is used to print all the messages when the JOB terminates normally or abnormally.

MSGLEVEL used to control the volume of the messages from server as well.

It is mainly used to control the output messages which will be printed on the JOB log.

MSGLEVEL (0, 0) is default.

The MSGLEVEL parameter controls allocation messages and termination messages which are printed in the job's output listing.

MSGLEVEL used to request for the printing of below

  1. JOB statement.
  2. JOB control statements in the input stream
  3. In-stream and cataloged procedure
  4. Allocation of memory, execution and termination of job steps.
Syntax:
	MSGLEVEL (M1, M2) 
Syntax with JOB card:
	//JOB-NAME JOB (ACCT-INFO),’PROGR-NAME’, CLASS=class-name, 
	//    MSGCLASS=msg-class, MSGLEVEL (M1, M2), keyword-parameters

First parameter can be used to control the statements.

First parameter value range is from 0-2.

	M1 	-> 	0 	-	JCL internal messages 
		-> 	1 	-	All Messages 
		-> 	2 	-	JOB related messages (JCL & JES) 

Second parameter is used to control the messages.

Second parameter value range is 0-1.


	M2 	-> 	0 	-	Messages will be displayed only when 
	                                Abnormal 
	                
		-> 	1 	-	Messages will be displayed only when 
		                        Normal/Abnormal 
	MSGLEVEL (0, 0)		-	Only JCL Internal messages and JOB ended 
	                                abnormal (unsuccessfully).

	MSGLEVEL (0, 1)		-	Only JCL Internal messages and JOB ended as 
	                                normal/abnormal.

	MSGLEVEL (1, 0)		-	All messages and JOB ended abnormal 
	                                (unsuccessfully).

	MSGLEVEL (1, 1)		-	All messages and JOB ended as 
	                                normal/abnormal.

	MSGLEVEL (2, 0)		-	Only JOB related messages and JOB ended 
	                                abnormal (unsuccessfully).

	MSGLEVEL (1, 1)		-	Only JOB related messages and JOB ended as 
	                                normal/abnormal.

If any questions on the above, post your queries on Jcl Discussion forum


JCL MSGCLASS Parameter JCL PRIORITY Parameter

Advertisements