|
|
| Author |
Message |
nprathap4u
New User
Joined: 24 Apr 2007 Posts: 15 Location: India
|
|
|
|
Any one knows how to send for multiple users...????
I want to send message for 5 users.. |
|
| Back to top |
|
 |
References
|
|
 |
Splitted: Thu Sep 27, 2007 3:44 pm by William Thompson From Topic Mail through JCL works, but not sending mail (JCL) |
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1136 Location: Mumbai - India
|
|
|
|
Yes, it can be done using the IKJEFT01 utility.
Just add the emails ID one after another in the control card.
Also search the forum as this has been discussed before. |
|
| Back to top |
|
 |
twissi
Active User
Joined: 01 Aug 2005 Posts: 99 Location: Manchester
|
|
|
|
Prathap,
It looks as if you know how to send email to one user; try making a distribution list on your email client (for the 5 users you want the email to be sent to) and use that email-id in your JCL.
Nice and easy,
Twissi. |
|
| Back to top |
|
 |
nprathap4u
New User
Joined: 24 Apr 2007 Posts: 15 Location: India
|
|
|
|
Thanks William.
But i couldnt find that forum.
could you please post that utility once again.
-regards
Prathap |
|
| Back to top |
|
 |
Moved: Thu Sep 27, 2007 5:26 pm by superk From JCL to Other Mainframe Topics |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 8643 Location: 221 B Baker St
|
|
|
|
Hello,
You can send multiples using
Just use parentheses and continuation(s).
Not sure why one shows as "link" - must be a feature of the board  |
|
| Back to top |
|
 |
Devzee
Senior Member
Joined: 20 Jan 2007 Posts: 708 Location: Hollywood
|
|
|
|
|
Using what utility you are trying to send email? |
|
| Back to top |
|
 |
jasveer singh
New User
Joined: 06 Mar 2006 Posts: 12
|
|
|
|
Hi ,
Here is the JCL step to send the mail to multiple thru SMTP
//STEP001 EXEC PGM=IKJEFT01,
// DYNAMNBR=25,
// COND=(12,EQ)
//SYSTERM DD DUMMY
//SYSPROC DD DUMMY
//SYSTSIN DD *
XMIT WROC.SMTP DDNAME(XMITNOTE) NONOTIFY NOLOG
/*
//XMITNOTE DD *
HELO << region that supports SMTP>>
MAIL FROM: <user1@comp1.com>
RCPT TO: <user2@comp2.com>
RCPT TO: <user3@comp3.com>
DATA
FROM: <user1@comp1.com>
TO: <user2@comp2.com>
TO: <user2@comp2.com>
SUBJECT:
<< Message content >>
.
QUIT
/*
//SYSTSPRT DD SYSOUT=*
//SYSDBOUT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSPRINT DD SYSOUT=* |
|
| Back to top |
|
 |
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1136 Location: Mumbai - India
|
|
|
|
nprathap4u,
Use this if you are still facing the problem of sending mails to multiple user's.
| Code: |
//SEMAIL EXEC PGM=IKJEFT01,
// DYNAMNBR=40,
// PARM='%SWMAIL &CYCL'
//NOTE DD DUMMY
//PARMS DD DSN=HLQ1.INFO(FROM),
// DISP=SHR
//SYSPROC DD DSN=YOUR.DATASET.NAME,
// DISP=SHR
//SYSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSTIN DD DUMMY,DCB=BLKSIZE=80
//SYSTSIN DD DUMMY,DCB=BLKSIZE=80
//TO DD DSN=HLQ1.INFO(TO),
// DISP=SHR |
From control card: HLQ1.INFO(FROM)
| Code: |
SUBJECT="YOUR SUBJECT "
FROM=XYZ@ABC.COM |
To control card: HLQ1.INFO(TO)
Hope this helps. Else post your queries |
|
| Back to top |
|
 |
nprathap4u
New User
Joined: 24 Apr 2007 Posts: 15 Location: India
|
|
|
|
Hi,
Thanks a lot..it worked fine.
regards,
Prathap |
|
| Back to top |
|
 |
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1136 Location: Mumbai - India
|
|
|
|
Glad that i was able to help you  |
|
| Back to top |
|
 |
Analyst
New User
Joined: 06 Apr 2007 Posts: 3 Location: Singapore
|
|
|
|
Ho Pratap & Aaru,
What is the SYSPROC dataset should contain?
SWMAIL access should be requested to TSO Administrator?
Could you please clarify..I am submitting the job but could not receive the mail,but rc=0 |
|
| Back to top |
|
 |
purusothaman
New User
Joined: 17 Feb 2007 Posts: 9 Location: Chennai
|
|
|
|
| Is SWMAIL a third party tool? |
|
| Back to top |
|
 |
|
|