IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

what is the difference in SYSOut & Msgclass


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
logaas

New User


Joined: 19 Feb 2005
Posts: 25
Location: chennai

PostPosted: Tue Sep 06, 2005 6:01 pm
Reply with quote

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
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Tue Sep 06, 2005 6:17 pm
Reply with quote

Hi,

Quote:
MSGCLASS



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.

Quote:
SYSOUT


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
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Tue Sep 06, 2005 6:19 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Timestamp difference and its average ... DB2 11
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts Copy few lines from SYSOUT of 10 mill... All Other Mainframe Topics 5
No new posts What is the difference between Taskty... Compuware & Other Tools 2
No new posts No sysout coming in spool JCL & VSAM 4
Search our Forums:

Back to Top