MSGCLASS Parameter Example


Assumption - MSGCLASS parameter values definition (Assumption)

Parameter value Description
A SPOOL (Default)
B Printer in Hyderabad
C Printer in London
..... .....
9 Printer in Chicago

Scenario1 - MSGCLASS parameter with value "C".

Code -

----+----1----+----2----+----3----+----4----+----5----+
//MTHEXMP1 JOB (MTH007),'PAWAN Y',MSGCLASS=C,NOTIFY=&SYSUID 

Explaining Example -

In the above example: the JOB statement sends to the Printer in London for printing the job log.

Scenario2 - No MSGCLASS parameter.

Code -

----+----1----+----2----+----3----+----4----+----5----+
//MTHEXMP2 JOB (MTH007),'PAWAN Y',MSGLEVEL=(1,1),NOTIFY=&SYSUID 

Explaining Example -

In the above example: the JOB statement has not passed the MSGCLASS parameter. In this case, the MSGCLASS defaults to the installation default value 'A'. i.e., it is the device from where the job was submitted (SPOOL).