Is there any way we can point to a MAILBOOK member from within the job JCL at the job step level when using the SMTP driver of CA Spool?

book

Article ID: 14507

calendar_today

Updated On:

Products

CA Spool

Issue/Introduction



We have batch jobs that create numerous reports and have multiple steps in the job to selectively send different reports to different sets of email recipients. 

Is there any way we can point to a MAILBOOK member from within the job JCL at the job step level? Based on what I read in the Customization Guide, it appears we can, however I couldn't find any examples of how to do it

Environment

z/OS

Resolution

Here is an example: 

//OUT1 OUTPUT ADDRESS=('MAILBOOK=xxxxxxx') 

You can use this method to pass any of the other email parameters. Here is another example:

//EMAIL    OUTPUT  ADDRESS=('TO=email-address,',

//     'SUBJECT=&FNO - &FNM',                    

//     'FILENAME=&FNM.PDF',                      

 

//     'MSG=THIS IS A TEST MESSAGE.')            

 

Additional Information

CA Spool Customization Guide