How include a list of email recipients in a CA Spool printer definition? There is no enough room in the FADDRESx or DRIVPRMx keywords to contain a big list of email addresses.
Release : 12.0
Component : CA Spool
Suggested using use the MAILBOOK keyword to be able to include a bigger list of recipients. This requires the allocation of a MAILLIB PDS file in case you still don't have one.
Follow this procedure:
1) Allocate a PDS with the following attributes:
Record format . . . : VB
Record length . . . : 259
Block size . . . . : 27998
2) Include a DD statement MAILLIB in the CA Spool started task JCL pointing to this library:
//MAILLIB DD DISP=SHR,DSN=prefix.MAILLIB,DISP=SHR
3) Create a member in this PDS with a list of SMTP commands. In this case a list of TO and CC recipients:
4) In DESTID definition point to this member using the MAILBOOK keyword:
DESTID QDEST=TESTSMTP,FADDRES1='FILENAME=&FNM.TXT',
FADDRES2='MAILBOOK=membername',
FADDRES3='SUBJECT=TEST CASPOOL'
Where membername is the name of the member of the PDS where the TO and CC keywords are defined.