IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Sending mails using jcl with attachments


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kavitha_cts

New User


Joined: 09 Feb 2006
Posts: 3
Location: Chennai

PostPosted: Thu Feb 09, 2006 3:02 pm
Reply with quote

I want to know how to attach files while sending mails through jcl
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Thu Feb 09, 2006 3:16 pm
Reply with quote

Hi Kavita,

http://www.planetmvs.com/mvsmail/

You will get all information and documnet replatd to mail sending thru mainframe inclusing arratchment.

I already gave this site in your previous post. icon_rolleyes.gif

Hope this helps

Regards
Rupesh
Back to top
View user's profile Send private message
nirmal.poikaikumaran

New User


Joined: 29 Nov 2005
Posts: 66
Location: Bangalore

PostPosted: Thu Feb 09, 2006 3:19 pm
Reply with quote

Hi Kavitha,

Sending mails using MIME application in JCL for an attachment is the famous one.Report kind of excels can be done easily using this.Iam pasting a small piece of code for ur perusal.

Code:
HELO DOMAIN.NAME                                                             
MAIL FROM:<TYPE ?FROM? ADDRESS HERE> 
                                       
RCPT TO:< TYPE ?TO? ADDRESS HERE > 
RCPT TO:< TYPE ?TO? ADDRESS HERE >                                                             
DATA                                                                   
TO:< TYPE ?TO? ADDRESS HERE >
TO:< TYPE ?TO? ADDRESS HERE >
SUBJECT: TYPE SUBJECT HERE                           
MIME-Version: 1.0                                                       
Content-type: multipart/mixed;                                         
              boundary="<< boundary_identifier >>"

--<< boundary_identifier >>                                           
Content-Type: text/plain; charset="us-ascii"                         
Content-Transfer-Encoding: 7bit                                       
                                                                     
Hi,                                                                   

         TYPE YOUR MESSAGE HERE
                                                                     
--<< boundary_identifier >>                                           
Content-Type: application/octet-stream; name="destination_file.csv" 
Content-Transfer-Encoding: ascii                                       
"


You can code this in a PSDS and use it with a ICEGENER
to send mail.

Try and let me know in case of further queries
Back to top
View user's profile Send private message
aishwarya_singh

New User


Joined: 06 Apr 2005
Posts: 21

PostPosted: Mon Aug 28, 2006 1:02 pm
Reply with quote

Hi Nirmal,

Regarding This Attachment File mail..Suppose we want to send One or More than one datasets as one or two attachment trough the mail.What changes are needed Can you help me on this.

Regards,
Aishwarya
Back to top
View user's profile Send private message
aishwarya_singh

New User


Joined: 06 Apr 2005
Posts: 21

PostPosted: Tue Aug 29, 2006 3:41 pm
Reply with quote

Can anyone help me on this?
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Tue Aug 29, 2006 4:23 pm
Reply with quote

Aishwarya,

If you wan to send one or more datasets as an single attachment,
Add a step prior to your EMAIl step to concatinate into single step and Email in the later step.

~Vamsi
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Problem while sending special charact... JCL & VSAM 4
No new posts How to append Previous date into a S... JCL & VSAM 2
No new posts Pack to Unpack conversion for sending... COBOL Programming 13
No new posts Connnect Direct Sending Zip file from... All Other Mainframe Topics 3
No new posts Need Help on sending email by includi... JCL & VSAM 9
Search our Forums:

Back to Top