MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Conditional output destination

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
ptf
Beginner


Joined: 03 Jun 2004
Posts: 10
Topics: 5

PostPosted: Mon Jun 14, 2004 11:33 am    Post subject: Conditional output destination Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Mon Jun 14, 2004 11:58 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Mon Jun 14, 2004 11:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group