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?

Document ID : KB000014507
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

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
Answer:

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: