MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SMTPNOTE

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
dhivya_tcs
Beginner


Joined: 19 Apr 2007
Posts: 3
Topics: 2

PostPosted: Wed Jul 09, 2008 2:32 am    Post subject: SMTPNOTE Reply with quote

Hi, I have been trying to send a mail from JCL using SMTPNOTE. I wanted to know if in the 'TO' statement we can use a dataset that has the mailing list. Below is the JCL I have been using. I want to replace sanihasana@abcd.com with a dataset. Can that be done?
Code:

//MAILIT  EXEC PGM=IKJEFT01                         
//* include rexx code
//SYSPROC   DD  DISP=SHR,DSN=SANIHA.SYS.REXX
//SYSPRINT  DD  SYSOUT=*                           
//SYSTSPRT  DD  SYSOUT=*                           
//SYSTSIN   DD  *                                   
SMTPNOTE TO(sanihasan@abcd.com) -               
         SUBJECT(abcd)                -
         DATASET('saniha.sana(message dataset)' -     
         BATCH                                   
END
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Wed Jul 09, 2008 7:55 am    Post subject: Reply with quote

I'm not sure about the syntax of providing multiple recipients. The IP Users Guide and Commands manual wasn't clear. You might try concatenating a dataset with a list of names like this:
Code:
//SYSTSIN DD *
SMTPNOTE TO(            -
//       DD DSN=your.name.file.FB80,DISP=SHR
//       DD *
              ) -
SUBJECT(abcd) -
DATASET('saniha.sana(message dataset)' -
BATCH
END
where your.name.file contains
Code:
 sanihasan@abcd.com    -
 someone.else@abcd.com   -

_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Wed Jul 09, 2008 11:10 am    Post subject: Reply with quote

Watch the blocksize of the name file! To avoid any 'funnies' make it unblocked.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
sanihasana
Beginner


Joined: 09 Jul 2008
Posts: 2
Topics: 0
Location: Bangalore

PostPosted: Wed Jul 16, 2008 9:51 pm    Post subject: Reply with quote

Can we give a 'to address' which is not in the format of s@b.com? can it be in the form of a.b.c??
_________________
Saniha
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Thu Jul 17, 2008 11:45 am    Post subject: Reply with quote

Please start a new topic - do not add to old ones.

What does the manual say?
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
sanihasana
Beginner


Joined: 09 Jul 2008
Posts: 2
Topics: 0
Location: Bangalore

PostPosted: Fri Jul 18, 2008 7:24 am    Post subject: Reply with quote

my above question was pertaining to the same topic. in the jcl, i wanted to know if in place of SMTPNOTE TO(sanihasan@abcd.com) i could put saniha.sana@abcd.com to saniha.sayed.sana

i had started this topic with the help of my friend's id coz that time i didnt have a id in mvs forums. Confused
_________________
Saniha
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Fri Jul 18, 2008 11:24 am    Post subject: Reply with quote

OK - I understand about the change in IDs. Thought you were 'hijacking' the thread!

Quickest way to get your answer would have been to try it. I have not tried any of this stuff but I would have thought that if one form of e-mail address is valid then any form of e-mail address is valid.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Fri Jul 18, 2008 3:15 pm    Post subject: Reply with quote

If your TO address has no @domain.com how will the server know where to send it?
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group