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
 

 

Referback sysout=* to MSGCLASS and then to OUTPUT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
BernardMein

New User


Joined: 12 Nov 2008
Posts: 5
Location: Springfield MA

PostPosted: Wed Oct 28, 2009 11:54 pm    Post subject: Referback sysout=* to MSGCLASS and then to OUTPUT
Reply with quote

I'm looking for verification that the routing of sysout is behaving per the JCL standard. I have not found within the JCL docs, an explanation of this scenario.

Our coding standard recommends the use of the OUTPUT card along with sysout=(,) in order to obtain specific parameters/options defined on that OUTPUT card; we want all sysout to get those options, and in this case CLASS=J. If we were to rely on MSGCLASS alone, we do not get these parameters/options, though we would still get a sysout class of "J". Thus in the JCL we always have sysout=(,).
A question arises for Procs used in the JCL and within those underlying Procs are DD statements with sysout=*. This sysout refers to MSGCLASS and we do not override the "sysout=*" in the Proc, with "sysout=(,)" in the JCL in question. If I code MSGCLASS=J in my JCL, and the (default) OUTPUT card has the same class of "J", does the JCL interpreter route all sysout=* to the (defaulted) OUTPUT card?
So it seems to me that "sysout=*" in the Proc, goes to MSGCLASS=J, which then goes to OUTPUT CLASS=J.

I have tested this scenario on our system, and it behaves this way, but is that standard behavior?
Thanks.
Back to top
View user's profile Send private message

Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Thu Oct 29, 2009 7:53 pm    Post subject:
Reply with quote

The JCL Reference says "On the DD statement, you must code a null class in order to use the OUTPUT JCL CLASS parameter".

Therefore, your SYSOUT=* will ignore the CLASS on the OUTPUT stmnt and always use the MSGCLASS.
Back to top
View user's profile Send private message
BernardMein

New User


Joined: 12 Nov 2008
Posts: 5
Location: Springfield MA

PostPosted: Thu Oct 29, 2009 8:55 pm    Post subject: Reply to: Referback sysout=* to MSGCLASS and then to OUTPUT
Reply with quote

Thank you. I have found the section in the JCL manual. I have been interpreting the DEFAULT keyword, and sysout routing, incorrectly. As you stated, if I do not have explicit values on my DD/Sysout statement, it picks up the values from the default OUTPUT card. In the case of sysout=*, it picks up class from MSGCLASS first, and then gets other values (like FORMS) from the default OUTPUT card.
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 How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts JES2 doesn't honor the priority of th... Aron Lendvai JCL & VSAM 7 Thu Jun 29, 2017 1:41 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am


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