Just to put all the correct information in one email, since some have given incorrect information.

The following is correct:
The boundary definition statement should be:
BOUNDARY="SIMPLE BOUNDARY"
Within the email, the opening boundary should be:
--SIMPLE BOUNDARY
Within the email, the closing boundary should be:
--SIMPLE BOUNDARY--


The rules:
The boundary setting does not have dashes.
The opening boundary has two leading dashes.
The closing boundary has two leading dashes and two trailing dashes.

Tony Thigpen

Roberto Halais wrote on 8/9/19 3:36 PM:
You must finish with:

--SIMPLE  BOUNDARY--

With 2 dashes at the end

On Fri, Aug 9, 2019 at 12:51 PM Ron Thomas <[email protected]> wrote:

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


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to