| View previous topic :: View next topic |
| Author |
Message |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12399 Topics: 75 Location: San Jose
|
|
| Back to top |
|
 |
dinamo80 Beginner
Joined: 24 Nov 2004 Posts: 4 Topics: 0
|
Posted: Wed Nov 24, 2004 5:18 am Post subject: |
|
|
Hi to all,
I have this problem on e-mail sending.
I have to send different texts to different e-mail adresses in a unique session (i.e. using a unique SYSUT1 dataset), but I dont know if this is possible and - in affirmative case - how.
Can you help me?
Thank you in advance. |
|
| Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12399 Topics: 75 Location: San Jose
|
Posted: Wed Nov 24, 2004 9:04 am Post subject: |
|
|
dinamo80,
You can you different step for each user depending on the text.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
| Back to top |
|
 |
dinamo80 Beginner
Joined: 24 Nov 2004 Posts: 4 Topics: 0
|
Posted: Thu Nov 25, 2004 5:26 am Post subject: |
|
|
| kolusu wrote: | dinamo80,
You can you different step for each user depending on the text.
Kolusu | Hi Kolusu,
excuse me if I ask You an explanation another time. I should send n e-mailscontaining n different text to n recipients, but using only 1 IEBGENER processing. Could you suggest me SYSUT1 structure for my requirement ?
I tried with structure below but I failed ...
HELO MVS
MAIL FROM:<a.ao |
|
| Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12399 Topics: 75 Location: San Jose
|
Posted: Thu Nov 25, 2004 10:33 am Post subject: |
|
|
dinamo80,
It is very simple . Just code one step for each text messsage
ex:
| Code: |
//STEP0100 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD *
HELO SYSA
MAIL FROM: <KOLUSU@MVSFORUMS.COM>
RCPT TO: <dinamo80@HOST.COM>
DATA
FROM: Complete name of sender
TO: Complete name of adressee
SUBJECT: The Subject
REPLY-TO: reply@host.com
YOUR text1
.
QUIT
//SYSUT2 DD SYSOUT=(A,SMTP)
/*
//STEP0200 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD *
HELO SYSA
MAIL FROM: <KOLUSU@MVSFORUMS.COM>
RCPT TO: <dinamo80@HOST.COM>
DATA
FROM: Complete name of sender
TO: Complete name of adressee
SUBJECT: The Subject
REPLY-TO: reply@host.com
YOUR text2
.
QUIT
//SYSUT2 DD SYSOUT=(A,SMTP)
|
Hope this helps...
Cheers
kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
| Back to top |
|
 |
dinamo80 Beginner
Joined: 24 Nov 2004 Posts: 4 Topics: 0
|
Posted: Fri Nov 26, 2004 6:05 am Post subject: |
|
|
Hi Kosulu,
thank you for your suggest! Now I've another problem. Imagine that I have to send different e-mails depending on the result standing on a file resulting from a previous processing. So I could have to send 3 different e-mails to a, b, c one day, but another day I 'd send 7 different e-mails to b,d, x,y,z,w,k ... so the nr. of steps is different depending on the context.
In an other e-mail environment I send different e-mails creating a dataset with caracteristics below, and running a unique JCL step.
)SEND
TITLE xxxxxxx
DEST yyyyyyy
Text1
)END
)SEND
TITLE xxxxxxx
DEST zzzzzzzz
Text2
)END
and so son...
I hope in your powerrful help.
Thank you in advance. |
|
| Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12399 Topics: 75 Location: San Jose
|
Posted: Mon Nov 29, 2004 9:37 am Post subject: |
|
|
| Quote: |
In an other e-mail environment I send different e-mails creating a dataset with caracteristics below, and running a unique JCL step.
|
dinamo80,
You can do the same with SMTP also. Generate one file with all the emails with a delimiter . and you can send multiple emails to multiple ID's within a single step.
ex:
| Code: |
HELO SYSA
MAIL FROM: <KOLUSU@MVSFORUMS.COM>
RCPT TO: <EMAIL-RECEIPENT-1@HOST.COM>
DATA
TO: <EMAIL-RECEIPENT-1@HOST.COM>
SUBJECT:Test email-1.
my subject -1
.
HELO SYSA
MAIL FROM: <KOLUSU@MVSFORUMS.COM>
RCPT TO: <EMAIL-RECEIPENT-2@HOST.COM>
DATA
TO: <EMAIL-RECEIPENT-2@HOST.COM>
SUBJECT:Test email-2.
my subject -2
.
QUIT
|
SMTP seperates these 2 mails delimiting the mail by . (period or fullstop)
Now use the above created file as SYSUT1 and send the mail to multiple id's
| Code: |
//STEP0100 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=YOUR MULTIPLE EMAIL FILE,
// DISP=SHR
//SYSUT2 DD SYSOUT=B,DEST=SMTP
//SYSIN DD DUMMY
|
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
| Back to top |
|
 |
dinamo80 Beginner
Joined: 24 Nov 2004 Posts: 4 Topics: 0
|
Posted: Mon Nov 29, 2004 10:22 am Post subject: |
|
|
Thank you Kosulu, you're great!
I tried immediately your suggest, it worked perfectly! This is what I need !
Thank you again!
Massimo (Italy) |
|
| Back to top |
|
 |
|
|
|