Hi,
I am trying to send two attachments using the below JCL, i'm able to get the attachments but i'm not getting correct data in the attachmnets . I'm getting DD statement of data files in the attachmnets instead of data from data files .
//MAILPROC EXEC PGM=IEBGENER
//SYSABEND DD SYSOUT=*
//SYSTOTAL DD SYSOUT=*
//SYSLIST DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD SYSOUT=(B,SMTP)
//SYSIN DD DUMMY
//SYSUT1 DD DISP=SHR,DSN=MAIL.TEST(CTL.CARD)
contents of CTL.CARD
HELO MAINFRAME.XXX.COM
MAIL FROM: <MAINFRAME@XXX.COM>
RCPT TO: <HOLADVINCHI@XXX.COM>
DATA
TO: <HOLADVINCHI@XXX.COM>
SUBJECT: TEST ATTACHMENT
MIME-VERSION: 1.0
CONTENT-TYPE: MULTIPART/MIXED; BOUNDARY="SIMPLE BOUNDARY"
--SIMPLE BOUNDARY
CONTENT-TYPE: TEXT/PLAIN
CONTENT-DISPOSITION: INLINE
mail body
CONTENT-TYPE: TEXT/PLAIN
CONTENT-DISPOSITION: ATTACHMENT; FILENAME=FILE1.CSV
// DD DISP=SHR,DSN=MAIL.TEST(DATA1)
// DD *
--SIMPLE BOUNDARY
CONTENT-TYPE: TEXT/PLAIN
CONTENT-DISPOSITION: ATTACHMENT; FILENAME=FILE2.CSV
// DD DISP=SHR,DSN=MAIL.TEST(DATA2)
// DD *
--SIMPLE BOUNDARY--
// DD DISP=SHR,DSN=MAIL.TEST(QUIT)
contents of DATA1
123456789146521541,ZENNY,HOLA,1234566788999
instead of getting the output as
123456789146521541 ZENNY HOLA 1234566788999
i'm getting output as
// DD DISP=SHR DSN=MAIL.TEST(DATA1)
// DD *
Please help me to get the correct data.
Thanks in advance,
Hola
//MAILPROC EXEC PGM=IEBGENER
//SYSABEND DD SYSOUT=*
//SYSTOTAL DD SYSOUT=*
//SYSLIST DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD SYSOUT=(B,SMTP)
//SYSIN DD DUMMY
//SYSUT1 DD DISP=SHR,DSN=MAIL.TEST(CTLCARD)
// DD DISP=SHR,DSN=MAIL.TEST(DATA1)
// DD *
--SIMPLE BOUNDARY
CONTENT-TYPE: TEXT/PLAIN
CONTENT-DISPOSITION: ATTACHMENT; FILENAME=FILE2.CSV
// DD DISP=SHR,DSN=MAIL.TEST(DATA2)
// DD *
--SIMPLE BOUNDARY--
// DD DISP=SHR,DSN=MAIL.TEST(QUIT)