View previous topic :: View next topic |
Author |
Message |
mcclr Beginner
Joined: 10 Jan 2006 Posts: 11 Topics: 4
|
Posted: Tue Jan 10, 2006 5:16 pm Post subject: Dynamically create USERDATA= parms |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Wed Jan 11, 2006 5:13 am Post subject: |
|
|
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 |
|
|
mcclr Beginner
Joined: 10 Jan 2006 Posts: 11 Topics: 4
|
Posted: Wed Jan 11, 2006 10:28 am Post subject: |
|
|
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 |
|
|
|
|