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

How to mail an attachment through JCL


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

New User


Joined: 12 Jan 2006
Posts: 29

PostPosted: Thu Jan 12, 2006 11:59 am
Reply with quote

Hi,

Does anyone have an idea abt a Mailing Step in JCL where we send a mail along with the Attachement with specific format say .xls along with the mail.
Not sure but sounds like SYSMail or SASMAIL...

Thanks,
Ravi
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Thu Jan 12, 2006 12:05 pm
Reply with quote

Hi Ravi,

Check the below link
ibmmainframes.com/viewtopic.php?t=7899&highlight=mail+thru+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 Jan 12, 2006 12:07 pm
Reply with quote

HI Ravi,

Go thru following Link.

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

Hope this helps

Regards
Rupesh
Back to top
View user's profile Send private message
ravikanth

New User


Joined: 12 Jan 2006
Posts: 29

PostPosted: Wed Jan 18, 2006 6:10 pm
Reply with quote

Hi All,

Wanted to share some info on mailing an attachment through JCL.
//SASMAIL EXEC SAS
//SYSIN DD *
DATA;
FILENAME MYFILE EMAIL
TO= " Specify mail id "
FROM= "anthing without spaces"
SUBJECT= "Subject of Ur mail"
ATTACH= ('Dataset should be specified here'
NAME = 'name of the attachement' EXT="XLS");
DATA _NULL_;
FILE MYFILE;
PUT 'Description of the mail';
RUN;
QUIT;
/*
Cheers,
Ravi
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 mail attachment with excel format All Other Mainframe Topics 2
No new posts Unable to send mail via CSSMTP to GMA... JCL & VSAM 2
No new posts Prblem with mail having MIME contents JCL & VSAM 2
No new posts Unable to send mail with SMTP commands JCL & VSAM 10
No new posts Moving a PS file as body of a mail! JCL & VSAM 4
Search our Forums:

Back to Top