tvssv Beginner
Joined: 11 Mar 2009 Posts: 58 Topics: 25
|
Posted: Wed Sep 28, 2022 9:24 am Post subject: FTP file via email from MVS. |
|
|
Hi,
My requirement is to send dataset in mainframe via email. I have written the below JCL. I am getting email, but the attached text file is blank. Please give suggestion where it went wrong.
JCL is as below.
Code: |
//STEPNAME EXEC PGM=SYNCGENR,REGION=2M
//*
//SYSUT1 DD DSN=DATASET1,DISP=SHR
// DD DSN=DATASET2,DISP=SHR
// DD DSN=DATASET3,DISP=SHR
//SYSUT2 DD SYSOUT=(B,SMTP)
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
|
DATASET1 CONTENTS ARE AS BELOW
Code: |
HELO SYSA
MAIL FROM: <EMAIL ID>
RCPT TO: <EMAIL ID>
DATA
FROM: <EMAILID>
TO: <EMAILID>
SUBJECT: SUBJECT DESCRIPTION
MIME-VERSION:1.0
CONTENT-TYPE:MULTIPART/MIXED;BOUNDARY=MIME_BOUNDARY
--MIME_BOUNDARY
CONTENT-TYPE:TEXT/PLAIN
CONTENT-DISPOSITION:INLINE
----TEXT HERE
--MIME_BOUNDARY
CONTENT-DISPOSITION: ATTACHMENT;FILENAME="FTP.TXT"
CONTENT-TYPE: TEXT
|
DATASET 2 CONTAINS THE ACTUAL DATA TO BE TRANSMITTED VIA EMAIL
DATASET 3 CONTENTS ARE AS BELOW.
JCL AFTER executing sending blank file without contents. Please help. _________________ Thanks
TVSSV |
|