sure, below is one example
//SMTPTEST EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DSN=my.MAIL.HEADER,DISP=SHR
HELO sitename
MAIL FROM:<user@sitename>
RCPT TO:u...@emdomain.com
DATA
SUBJECT:SMTP TESTING ATTACHEMENT
MIME-VERSION: 1.0
CONTENT-TYPE: TEXT/PLAIN
CONTENT-DISPOSITION: ATTACHMENT; FILENAME=mvsfile.DOS.CERT.PRINT
/*
//SYSUT2 DD SYSOUT=(B,SMTP)
//
On 4/27/2022 10:20 AM, Sasso, Len wrote:
I have already created the Zip file with PKZIP (LRECL=80).
An example of using IEBGENER and attaching the Zip file would be appreciated.
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
len.sa...@gdit.com
URL:www.gdit.com<http://www.gdit.com>
________________________________
From: IBM Mainframe Discussion List<IBM-MAIN@LISTSERV.UA.EDU> on behalf of Carmen
Vitullo<cvitu...@hughes.net>
Sent: Wednesday, April 27, 2022 11:14 AM
To:IBM-MAIN@LISTSERV.UA.EDU <IBM-MAIN@LISTSERV.UA.EDU>
Subject: Re: Send an email with a Zip file as an attachment?
[External: Use caution with links & attachments]
I have an example, not attaching a zip file - do you have a product like
PKZIP on the mainframe?
if you need an example of using IEBGENER and attaching a file I can
provide an example
Carmen
On 4/27/2022 10:04 AM, Sasso, Len wrote:
Is it possible to send an email with a Zip file as an attachment, from our
mainframe (z/OS 2.3) executing IEBGENER via SMTP?
If so, could you please provide an example?
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
len.sa...@gdit.com
URL:www.gdit.com<http://www.gdit.com>
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send emailtolists...@listserv.ua.edu with the message: INFO IBM-MAIN
--
/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 tolists...@listserv.ua.edu with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email tolists...@listserv.ua.edu with the message: INFO IBM-MAIN
--
/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 lists...@listserv.ua.edu with the message: INFO IBM-MAIN