View previous topic :: View next topic
|
Author |
Message |
logaas
New User
Joined: 19 Feb 2005 Posts: 25 Location: chennai
|
|
|
|
hi
Can anyone explain me the difference betwween SYSOUt & MSGCLASS.
//job1234 JOB (NI10),'abcLTHA', CLASS=A , PRTY=10 , NOTIFY=1234,MSGCLASS=X
//STEP10 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
Why we are coding both.
Regards
logaas |
|
Back to top |
|
|
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 463
|
|
|
|
Hi,
Purpose
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:
Only the JOB statement.
All job control statements.
In-stream and cataloged procedure statements.
Job control statement messages.
JES and operator messages about the job.
Purpose
Use the SYSOUT parameter to identify this data set as a system output data set, usually called a sysout data set.
Do not use the SYSOUT parameter for an SMS-managed data set (one with an assigned storage class).
The SYSOUT parameter also:
Assigns this sysout data set to an output class. The attributes of each output class are defined during JES initialization.
Optionally requests an external writer to process the sysout data set rather than JES. An external writer is an IBM- or installation-written program.
Optionally identifies the forms on which the data set is to be printed or punched.
Optionally refers to a JES2 /*OUTPUT statement for processing parameters.
The sysout data set is processed according to the following processing options, in override order:
The options specified on this sysout DD statement.
The options specified on a referenced OUTPUT JCL statement.
The options specified on a referenced JES2 /*OUTPUT statement or on a JES3 //*FORMAT statement.
The installation default options for the requested output class.
For More details refer any manual for JCL.
Regards
Rupesh |
|
Back to top |
|
|
Kevin
Active User
Joined: 25 Aug 2005 Posts: 234
|
|
|
|
Let's look at some definitions:
Quote: |
20.13 MSGCLASS Parameter
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:
- Only the JOB statement.
- All job control statements.
- In-stream and cataloged procedure statements.
- Job control statement messages.
- JES and operator messages about the job.
|
Quote: |
20.13.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:
The same output class in the DD SYSOUT parameter as in the JOB MSGCLASS parameter.
DD SYSOUT=* to default to the JOB MSGCLASS output class.
|
So, to answer your question:
Quote: |
Why we are coding both. |
your JCL is specifying that you want the output of the SORT program's SYSOUT DD to be directed to the same output class as your MSGCLASS. |
|
Back to top |
|
|
|