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

Referback sysout=* to MSGCLASS and then to OUTPUT


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
No new posts Build a record in output file and rep... DFSORT/ICETOOL 11
No new posts XDC SDSF output to temp dataset CLIST & REXX 4
Search our Forums:

Back to Top