Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

what is the difference in SYSOut & Msgclass

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: what is the difference in SYSOut & Msgclass
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: 464

PostPosted: Tue Sep 06, 2005 6:17 pm    Post subject: Re: what is the difference in SYSOut & Msgclass
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    Post subject: Re: what is the difference in SYSOut & Msgclass
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Difference between TWALENG and TWASIZE Arunkumar Chandrasekaran CICS 3 Tue Jan 03, 2017 12:57 pm
No new posts Sticky: difference between ... DUMMY ... and ... enrico-sorichetti JCL & VSAM 0 Mon Oct 17, 2016 4:31 pm
No new posts Difference space showed for TS and it... autobox DB2 1 Thu Apr 14, 2016 1:07 pm
No new posts Difference Between CICS WebSupport an... sachinji84 CICS 1 Mon Mar 07, 2016 7:25 pm
No new posts Difference between -180 and -181 with... deepak_shrivastava DB2 4 Wed Jan 06, 2016 10:00 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us