View previous topic :: View next topic |
Author |
Message |
Cathygomez Beginner
Joined: 04 Aug 2004 Posts: 6 Topics: 3
|
Posted: Thu May 05, 2005 11:14 am Post subject: email an attachment as well as the body msg from mainframe |
|
|
Hi all,
I need to sent a attachment as well as some message in the body of the email from Batch job in mainframe. I used the following jcl to sent an attachement. But i couldnot add any message in the body of the mail.
My mail should look like below....
----------------------------------------------------------
Attached is the data extracted for the last month
test1.txt(attached file)
for any questions please contact
----------------------------------------------------------
In the above, i could add the test.txt in the mail but i couldnot add the other messages(attached is the data extracted.......please contact)
Following is the code i used to attach the file
MIME-VERSION: 1.0
Content-Type: TEXT/PLAIN;
BOUNDARY=GC0Y0PKB9EX
Content-Disposition: attachment; filename="TEST1.txt"
// DD DSN=userid.TEST.dataset,DISP=SHR
--GC0Y0PKB9EX
any help on this appreciated |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
l_narashiman Beginner
Joined: 10 May 2005 Posts: 1 Topics: 0
|
Posted: Tue May 10, 2005 6:46 am Post subject: |
|
|
hi
I want to send 3 files as three different attachments. How can i do that? when i coded as follows
Content-Disposition: ATTACHMENT; filename="A.txt";
Content-Disposition: ATTACHMENT; filename="B.txt";
Content-Disposition: ATTACHMENT; filename="C.txt";
i am getting only one file C.TXT with all the contents of 3 files. Please help me in this regard. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
dilip_rath Beginner
Joined: 05 Sep 2007 Posts: 1 Topics: 0 Location: India
|
Posted: Tue Sep 09, 2008 7:58 am Post subject: |
|
|
I tried this one in our system. Check if you have some procs in your system
//EMAIL EXEC PROC=P9GEMAIL,
// SUBJECT='Subject of email'
//USERID DD *
email-id@domain.com
/*
//ATTACH1 DD DSN=<file name>,DISP=SHR
The attachment comes with name ATTACH01.txt
Dilip |
|
Back to top |
|
|
|
|