Use the MSGCLASS parameter to assign the job log to an output class. The job log is a record of job-related information for the programmer. Depending on the JOB statement MSGLEVEL parameter, the job log can consist of:
Note: In a JES3 environment, a job can complete processing before all of its messages have been written to the job log. When this occurs, the job’s output is incomplete. For this reason, do not use the contents of the job log as an automation or as a programming interface.
Considerations for an APPC Scheduling Environment
The MSGCLASS parameter has no function in an APPC scheduling environment. If you code MSGCLASS, the system will check it for syntax and ignore it.
Identifies the output class for the job log. The class is one character, A through Z or 0 through 9, and must be a valid output class specified at JES initialization.
NJE Note: If you specify an output class that is a held class in an NJE environment, the system does not hold the data set until it reaches its ultimate destination node.
The default is based on the source of the job: The system places the job log in the same output class as the installation-specified default class for the particular card reader, work station, or time-sharing user that submitted the job. The installation default is specified at JES initialization.
4.Significance of Output Classes
To print the job log and any output data sets on the same output listing, code one of the following:
5.Examples of the MSGCLASS Parameter
Example//EXMP1 JOB ,GEORGE,MSGCLASS=F
In this example, the JOB statement specifies output class F for the job log.
Example//EXMP2 JOB ,MENTLE,MSGLEVEL=(2,0)
This JOB statement does not specify an output class. In this case, the output class defaults to the installation default output class for the device from which the job was submitted.
Example//A1403 JOB ,BLACK,MSGCLASS=L //STEP1 EXEC PGM=PRINT //OUTDD1 DD SYSOUT=L
In this example, the JOB statement and sysout DD statement OUTDD1 both specify the same output class. Consequently, the job log and data set OUTDD1 are written on the same output listing.
Example//B209 JOB ,WHITE,MSGCLASS=M //STEPA EXEC PGM=PRINT //OUTDDX DD SYSOUT=*
In this example, the JOB statement specifies that the system route the job log to output class M. The system also routes sysout data set OUTDDX to class M because SYSOUT=* is specified.
IBM-JCL Related Interview Questions
|VSAM Interview Questions||IBM - VSAM Interview Questions|
|IBM-CICS Interview Questions||JCL Interview Questions|
|IBM DB2 Interview Questions||COBOL Interview Questions|
|DB2 Using SQL Interview Questions||IBM-JCL&VSAM Interview Questions|
|IMS/DB Interview Questions||Mainframe DB2 Interview Questions|
Job Control Statements
Job Control Tasks
Format Of Statements
Syntax Of Parameters
Procedures And Symbols
Jcl Command Statement.
Special Dd Statements
If/then/else/endif Statement Construct
Output Jcl Statement
Xmit Jcl Statement
Jes2 Control Statements
Jes3 Control Statements
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.