JCL MSGCLASS

JCL - MEMLIMIT JCL - MSGLEVEL

Advertisements


MSGCLASS parameters used to describe where the JCL messages routed.

In other words, it is used to assign an output class for output listing (SYSOUT).

MSGCLASS parameter is an optional parameter.

MSGCLASS specifies the output class for the job log.

MSGCLASS can be useful to hold the system messages output after JOB execution completed.

MSGCLASS is related to a specific output device.

MSGCLASS is installation dependent.


Syntax:
MSGCLASS=msg-class

Syntax with JOB card:
//JOB-NAME JOB (ACCT-INFO),’PROGR-NAME’, CLASS=class-name, MSGCLASS=msg-class, keyword-parameters

msg-class Specifies the output class for job log

MSGCLASS parameter value always referred with one letter.

MSGCLASS parameter value allows alphabets (A-Z characters), numbers (0-9).

In total 36 different values can be allowed as MSGCLASS parameter value.

MSGCLASS parameter values are predefined by system during system installation.

Every MSGCLASS parameter value defined has its own characteristics.

Each MSGCLASS value mapped to a device or location.

MSGCLASS always has the default value (A) if it not explicitly coded.

MSGCLASS parameter value, the job log may consist below.


  • Only the JOB statements.
  • All job control statements.
  • In-stream and/or cataloged procedure statements.
  • Job control statement messages.
  • JES and operator messages of the job.

Default:

The installation default is specified at JES initialization.


Example 1:

//MTHEXMP1 JOB (META007),'PAWAN Y',MSGCLASS=Y

In the above example, the JOB statement specifies output class “Y” for the job log.


Example 2:

//MTHEXMP2 JOB (META007),'PAWAN Y', MSGLEVEL=(1,0)

In the above example, the 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 3:

//MTHEXMP3 JOB (META007),'PAWAN Y', MSGCLASS=Y
//STEP1   EXEC PGM=SAMPPROG
//OUTPUT1 DD   SYSOUT=Y

In the above example, the JOB statement and OUTPUT1 sysout DD statement both specify the same output class. So the job log and data set OUTPUT1 are written on the same output listing.


Example 4:

//MTHEXMP4 JOB (META007),'PAWAN Y', MSGCLASS=Y
//STEP1   EXEC PGM=SAMPPROG
//OUTPUT1 DD   SYSOUT=*

In the above example, the JOB statement specifies output class “Y” for the job log. The system routes sysout data set OUTPUT1 also to class “Y” because SYSOUT=* is specified.


JCL - MEMLIMIT JCL - MSGLEVEL

Advertisements