Iâ€™m using the below JCL to send the emails to multiple recipients, but I found that only one email ID receives that content of mail. For example in the case shown below, the first mail id receives a blank mail whereas the second id receives the right content. Similarly with multiple mail IDs in the list the last one receives the right format with all the previous ones receiving blank mails.
Is it possible to have multiple email ids receive same email content using the below file format by changing REXX?
//EMAILSUP EXEC PGM=IKJEFT01,COND=(4,LT),PARM='MULTIREX'
//SYSTSIN DD DUMMY
//SYSTSPRT DD SYSOUT=*
//SYSEXEC DD DSN=XXX.C.CLIST,DISP=SHR
// DD DSN=ABC.DEV.CLIST,DISP=SHR
//HEADER DD *
SUBJECT: Purchase Order Enquiry
//DETAILS DD DSN=TEST.MULTI.EMAIL,DISP=SHR
//TRAILER DD *
//HTML DD SYSOUT=(B,TCPSMTP)
//*TML DD SYSOUT=*
file TEST.MULTI.EMAIL has the following email content
HI this is the email I wanted to send for aaa & bbb
HI this is the email I wanted to send for 123 & 456 also 456