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?
search cancel

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

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?

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

https://techdocs.broadcom.com/us/en/ca-mainframe-software/traditional-management/ca-spool/14-0.html