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

Sending the mail morethan one user with a attachment


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

New User


Joined: 27 Sep 2006
Posts: 47
Location: Hyderabad

PostPosted: Mon Oct 09, 2006 3:11 pm
Reply with quote

Hi All

Can you pls tell, how to send an automatic mails to morethan one user.

I have 3 Input files . They are ---> IN1 ---- Body of the letter
IN2-----List of all the user , whom to send the mail.
IN3 -- attachement to be send

Pls let me know , how to perform this kind of tasks.

Thanx In Adv.
Back to top
View user's profile Send private message
lal_arun_272

New User


Joined: 09 Oct 2006
Posts: 31
Location: Bangalore

PostPosted: Mon Oct 09, 2006 6:51 pm
Reply with quote

Hi

Please include below steps in your JCL, This will sent a email with an attachment to email id' which you have given.


//Stepname EXEC MAILAWAY
//MAIL DD *
TO: abc@yahoo.com,
Xyz@yahoo.com

SUBJECT:write you are mail note subject here

// DD DSN=PS file <<this file contents will be sent as an attachment >>
// DISP=SHR
//*

Thanks
Arunlal
Back to top
View user's profile Send private message
radhakrishnan82

Active User


Joined: 31 Mar 2005
Posts: 435
Location: chennai, India

PostPosted: Mon Oct 09, 2006 6:54 pm
Reply with quote

http://www.ibmmainframes.com/viewtopic.php?t=13473&highlight=sending+mail

Hope this helps.
Back to top
View user's profile Send private message
prashanth1

New User


Joined: 27 Sep 2006
Posts: 47
Location: Hyderabad

PostPosted: Tue Oct 10, 2006 10:31 am
Reply with quote

Dear Arun,

Sorry to say, u didnt get my point.

My problem is I have 3 Input files. 1) It contains body of the letter
2)it contains list of the users, whom to send the mail with attachment
3) the actual attachment

I want to send the attachment with the body of the letter to all the users which are there in the input file .

Thanx in Adv.

Prashanth1
Back to top
View user's profile Send private message
lal_arun_272

New User


Joined: 09 Oct 2006
Posts: 31
Location: Bangalore

PostPosted: Tue Oct 10, 2006 4:44 pm
Reply with quote

Hi

Still you can use the same procedure to sent email thru JCL.
but am not sure we can give PS file instead of email id and subject.
if you don't have any problem to include those contain's of input PS file in an jcl step gohead and use the same jcl step it will work fine.


Thanking You
Arunlal
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 PuTTY - "User is not a surrogate... IBM Tools 5
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts user exit in IBM Infosphere Optim DB2 8
No new posts Running a Job with the Default User ID JCL & VSAM 2
No new posts mail attachment with excel format All Other Mainframe Topics 2
Search our Forums:

Back to Top