View previous topic :: View next topic
|
Author |
Message |
mark loftus
New User
Joined: 21 Jun 2006 Posts: 9
|
|
|
|
Is it possible to code the /*output statment so that it effects all SYSOUT in the job, without having to amend the sysout statments themselves? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
What does it say about DEFAULT in the manual, what happened when you tried it. |
|
Back to top |
|
|
mark loftus
New User
Joined: 21 Jun 2006 Posts: 9
|
|
|
|
All i can see in the manuals is
/*OUTPUT code parameter[,parameter]...
code
Identifies the /*OUTPUT statement. The code is 1 through 4 alphanumeric characters. To refer to a /*OUTPUT statement, the DD statement SYSOUT parameter must specify this code in its code-name subparameter. The referenced /*OUTPUT statement specifies processing options for the sysout data set defined in the referencing DD statement.
A code of * indicates that this /*OUTPUT statement is a continuation of the previous /*OUTPUT statement.
This seems to indicate that you have to point each sysout statment back to the output statment.
My problem is im converting several thousand JCL members from JES3 to JES2 and want to do a like for like replacement of the JES3 //*Format card with the /*output card. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Are we talking
/* JES2 OUTPUT or
//name OUTPUT statement here. |
|
Back to top |
|
|
mark loftus
New User
Joined: 21 Jun 2006 Posts: 9
|
|
|
|
JES2 /*output |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
To be honest, I've not played with these for more years than I care to remember, but would guess that if the JES parameters are the same as they are on JES3 it should work just by changing the //* to /*
a) Can you try it and see what happens.
b) One of our sysprogs normally rises around this time, and he will probably offer you a lot more help than I can. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
I haven't done anything with JES2 in more years than I care to remember. However, the JCL Language Reference manual (link at the top of the page) explicitly recommends using the OUTPUT statement instead of /*OUTPUT due to increased flexibility. And the OUTPUT statement in the manual specifically states that using DEFAULT=YES allows implicit reference to the OUTPUT statement by SYSOUT statements. |
|
Back to top |
|
|
mark loftus
New User
Joined: 21 Jun 2006 Posts: 9
|
|
|
|
Thanks, that works a treat. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Great! Glad to hear it's working. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Another satiisfied customer , and thank's for letting us know it went well. |
|
Back to top |
|
|
|