Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Sending mails using jcl with attachments

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Sending mails using jcl with attachments
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: 464

PostPosted: Thu Feb 09, 2006 3:16 pm    Post subject: Re: Sending mails using jcl with attachments
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm
No new posts How to sending system service request... lind sh IMS DB/DC 5 Sun Apr 10, 2016 12:02 am
No new posts Issue in sending zip file as mail att... ajithajt JCL & VSAM 8 Thu Apr 07, 2016 9:11 am
No new posts Sending system service calls by AIBTDLI. lind sh IMS DB/DC 1 Wed Mar 16, 2016 6:51 pm
No new posts Sending IMS (DBCTL) command and get r... lind sh CICS 2 Tue Mar 01, 2016 2:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us