I belive that you need CONTENT-TRANSFER-ENCODING in both the message header and 
the MIME part. The boundary attribute should only be in the message header. I 
assume that you have other header fields that you're not showing, e.g., FROM, 
SUBJECT, TO. Other than that it looks good.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Discussion List [[email protected]] on behalf of 
Sasso, Len [[email protected]]
Sent: Thursday, April 28, 2022 9:09 AM
To: [email protected]
Subject: Re: [EXTERNAL] Re: Send an email with a Zip file as an attachment?

Below is the input to IEBGENER:

MIME-VERSION: 1.0
CONTENT-TYPE: MULTIPART/MIXED; BOUNDARY="SIMPLE BOUNDARY"

--SIMPLE BOUNDARY
CONTENT-TYPE: APPLICATION/ZIP; BOUNDARY="SIMPLE BOUNDARY"
CONTENT-DISPOSITION: ATTACHMENT; FILENAME=TEST.ZIP
CONTENT-TRANSFER-ENCODING: BINARY

//*
//    DD DISP=SHR,DSN=TEST.ZIP
//*




Thank You and Please Be Safe!

Len Sasso
Systems Administrator Senior
CSRA, A General Dynamics Information Technology Company
327 Columbia TPKE
Rensselaer, NY 12144

TEAM: Together Everyone Achieves More

Office Hours: M-F  7 AM - 3:45 PM

Vacation:

Phone: (518) 257-4209
Cell: (518) 894-0879
Fax: (518) 257-4300
[email protected]
URL: 
https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.gdit.com%2F&amp;data=05%7C01%7Csmetz3%40gmu.edu%7C78fdb9b0626049618dac08da291855d1%7C9e857255df574c47a0c00546460380cb%7C0%7C0%7C637867481743266811%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=5Zmjr4AUZF7C3D8SqM9bqovRrfy7yPrlZYeBK0OAIKo%3D&amp;reserved=0<https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.gdit.com%2F&amp;data=05%7C01%7Csmetz3%40gmu.edu%7C78fdb9b0626049618dac08da291855d1%7C9e857255df574c47a0c00546460380cb%7C0%7C0%7C637867481743266811%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=5Zmjr4AUZF7C3D8SqM9bqovRrfy7yPrlZYeBK0OAIKo%3D&amp;reserved=0>



________________________________
From: IBM Mainframe Discussion List <[email protected]> on behalf of 
Barkow, Eileen <[email protected]>
Sent: Wednesday, April 27, 2022 1:09 PM
To: [email protected] <[email protected]>
Subject: Re: [EXTERNAL] Re: Send an email with a Zip file as an attachment?



 [External: Use caution with links & attachments]

I used to run this with XMITIP - email attachment is in separate  file, either 
HFS or MVS

//XMIT EXEC XMITIP,COND=((0,NE),(0,EQ))
//*HFS1 DD PATH='/u/eileen/tmp/statfile/edupstat.zip',
//*  PATHDISP=(KEEP,KEEP) PATHMODE=SIRXU
//HFS1 DD DSN=XXXXX.MACS.ZIP,DISP=SHR
//SYSIN DD *
  %XMITIP   ([email protected])     +
      CC    ([email protected]) +
      FROM  "EILEEN BARKOW"<[email protected]> +
      SUBJECT 'ZIPPED MACS-restore with tso receive' +
      FORMAT BIN/zip    +
     FILEDD HFS1
 /*
//


-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Carmen Vitullo
Sent: Wednesday, April 27, 2022 12:54 PM
To: [email protected]
Subject: [EXTERNAL] Re: Send an email with a Zip file as an attachment?

CAUTION: This email originated from outside of the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.  Forward suspect email to [email protected] as an attachment (Click 
the More button, then forward as attachment).

I'm not sure what this additional parameter does

BOUNDARY="SIMPLE BOUNDARY"
I don't use that parm in my test job
I think maybe the best option is to try XMIT/IP I actually may have that tool 
also, I can check Carmen

On 4/27/2022 11:28 AM, Sasso, Len wrote:
> BOUNDARY="SIMPLE BOUNDARY"
--
/I am not bound to win, but I am bound to be true. I am not bound to succeed, 
but I am bound to live by the light that I have. I must stand with anybody that 
stands right, and stand with him while he is right, and part with him when he 
goes wrong. *Abraham Lincoln*/

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

________________________________

This e-mail, including any attachments, may be confidential, privileged or 
otherwise legally protected. It is intended only for the addressee. If you 
received this e-mail in error or from someone who was not authorized to send it 
to you, do not disseminate, copy or otherwise use this e-mail or its 
attachments. Please notify the sender immediately by reply e-mail and delete 
the e-mail from your system.

----------------------------------------------------------------------
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

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

Reply via email to