How large is the file? Does your shop have a JESMsgSize that limits your email?
You should check in SYSLOG to see if your job is getting an EZD1816I message. Your job will not see this failure. I just ran into this issue where the limit was 3MB and the user was trying to send 4MB. Lizette > -----Original Message----- > From: IBM Mainframe Discussion List <[email protected]> On Behalf Of > Ron Thomas > Sent: Friday, August 09, 2019 9:51 AM > To: [email protected] > Subject: Email report from jcl > > Hi All. > > > i am only getting the file attached correctly when i am giving the below and > then this text is going to get embed in the file also. Is there any other to > do the same ? I don't want this contents to be attached when the user > receives the report . The LRECL of the files is 4500 > > // DD * > --SIMPLE BOUNDARY > CONTENT-TYPE: TEXT/PLAIN > CONTENT-DISPOSITION: ATTACHMENT; > > Job details as follows > > //STEP14 EXEC PGM=IEBGENER > //SYSPRINT DD SYSOUT=* > //SYSUT1 DD DSN=G3S2.VNDR.PRCE.HDR,DISP=SHR > // DD * > --SIMPLE BOUNDARY > CONTENT-TYPE: TEXT/PLAIN > CONTENT-DISPOSITION: ATTACHMENT; > // DD DISP=SHR,DSN=G3S2.VNDR.SAME.PRCE.REPORT > // DD DISP=SHR,DSN=G3S2.VNDR.SAME.PRCE.EMAILAT > //SYSUT2 DD SYSOUT=(B,SMTP) > //SYSIN DD DUMMY > //* > > CONTENTS IN G3S2.VNDR.PRCE.HDR > > HELO SMTP > MAIL FROM:<[email protected]> > RCPT TO: <[email protected]> > DATA > FROM:<[email protected]> > TO: <[email protected]> > SUBJECT:SECUREMAIL TODAY'S VENDOR-CITY DIVERGENCE REPORT > MIME-VERSION: 1.0 > CONTENT-TYPE: MULTIPART/MIXED; BOUNDARY="SIMPLE BOUNDARY" > CONTENT-TYPE: TEXT/PLAIN > CONTENT-DISPOSITION: ATTACHMENT; FILENAME=DIVRGRPT.TXT > > > G3S2.VNDR.SAME.PRCE.REPORT -> DIVRGRPT.TXT DSN=G3S2.VNDR.SAME.PRCE.EMAILAT -> > HERE THE VALUE IS "." > > Thanks > Ron T > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
