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
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',
// 'MSG=THIS IS A TEST MESSAGE.')