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 

Dynamically create USERDATA= parms

 
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
mcclr
Beginner


Joined: 10 Jan 2006
Posts: 11
Topics: 4

PostPosted: Tue Jan 10, 2006 5:16 pm    Post subject: Dynamically create USERDATA= parms Reply with quote

We have a need to dynamically create userdata parms. We need to send a dataset as an email, which we are able to do using VPS email, but we do not want to hard code the userdata information in the job step because the recipient will change. The JCL looks like this:
Code:

//STEP1 EXEC PGM=IEBGENER                                           
//OUT1 OUTPUT DEST=LPEMAIL3,                                       
//     USERDATA=('TO:XXXX@YAHOO.COM',                     
//     'SUBJECT:DR DOCUMENTATION')                                 
//SYSPRINT DD DUMMY                                                 
//SYSIN DD DUMMY                                                   
//SYSUT2 DD SYSOUT=V,OUTPUT=*.OUT1                                 
//SYSUT1 DD DISP=SHR,DSN=filetosend

We would like to build a temporary dataset in a prior step and pass that to this step. We have tried using an INCLUDE statement and that seems to work if we build the entire //OUT1 DD data. However it does not work with a temporary dataset. Any ideas?
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: Wed Jan 11, 2006 5:13 am    Post subject: Reply with quote

mcclr,

Put all the list of receipents in a file and use that to create the OUT1 DD data cards using an utility like sort and submit the new job via INTRDR. Search the utlities forum for INTRDR for examples

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
mcclr
Beginner


Joined: 10 Jan 2006
Posts: 11
Topics: 4

PostPosted: Wed Jan 11, 2006 10:28 am    Post subject: Reply with quote

Thank you for the suggestion. This would work very well except that they want the jobstream to remain under CA7 control so that if it abends, it will be reflected in CA7. Operations is not required to notify programmers if a non-CA7 job abends.
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