MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

email an attachment as well as the body msg from mainframe

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
Cathygomez
Beginner


Joined: 04 Aug 2004
Posts: 6
Topics: 3

PostPosted: Thu May 05, 2005 11:14 am    Post subject: email an attachment as well as the body msg from mainframe Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu May 05, 2005 11:30 am    Post subject: Reply with quote

cathygomez,

Please search before posting. check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=439&highlight=attachment

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
l_narashiman
Beginner


Joined: 10 May 2005
Posts: 1
Topics: 0

PostPosted: Tue May 10, 2005 6:46 am    Post subject: Reply with quote

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. Crying or Very sad
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Tue May 10, 2005 7:20 am    Post subject: Reply with quote

l_narashiman,

Take a look at the posting by me (second post from bottom) about sending many mails in one mail.

http://mvsforums.com/helpboards/viewtopic.php?t=439&highlight=fullstop

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dilip_rath
Beginner


Joined: 05 Sep 2007
Posts: 1
Topics: 0
Location: India

PostPosted: Tue Sep 09, 2008 7:58 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group