View previous topic :: View next topic |
Author |
Message |
ptf Beginner
Joined: 03 Jun 2004 Posts: 10 Topics: 5
|
Posted: Mon Jun 14, 2004 11:33 am Post subject: Conditional output destination |
|
|
I want to control output destination conditionally in my jcl. Is this possible? For example, I have a job that runs for many clients. For some clients, they want output on paper, for others we still want the output, just not to paper. Can I do this using one jcl? |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Mon Jun 14, 2004 11:58 am Post subject: |
|
|
Ptf,
Add a IEBGENER step at the end to route the output to a printer. In the pgm You can set the return code depending on the client And use this return code to skip the print step.
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
Cogito-Ergo-Sum Advanced
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
|
Posted: Mon Jun 14, 2004 11:21 pm Post subject: |
|
|
Kolusu,
His requirement can be met in one step itself. For example,
Code: |
//OUT1 OUTPUT DEST=paper
//OUT2 OUTPUT DEST=printer
.
.
.
.
.
//DS DD SYSOUT=C,OUTPUT=(*.OUT1,*.OUT2)
|
The OUT1 and OUT2 will be defined after the jobcard. _________________ ALL opinions are welcome.
Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes. |
|
Back to top |
|
|
|
|