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 

How to add mail ID's in CC field of jcl

 
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
m.vinay kumar
Beginner


Joined: 02 Jun 2015
Posts: 7
Topics: 2

PostPosted: Sat Jul 04, 2015 3:29 am    Post subject: How to add mail ID's in CC field of jcl Reply with quote

Hi,

I have prepared JCL to send Mail with attachment, its working fine.

I want to know what is the syntax for adding mail ID's in CC so that instead of keeping some Mail ID's in RCPT (TO field) i want some mail ID's to keep in CC of mail.

If i use
Code:
 CC TO:<XXXX@xx.COM>


Its Not getting delivered to CC'd mail ID.

Please help me out ASAP.

Thanks in advance.
_________________
Vinay Kumar
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Mon Jul 06, 2015 9:52 am    Post subject: Re: How to add mail ID's in CC field of jcl Reply with quote

m.vinay kumar wrote:

Please help me out ASAP.


m.vinay kumar,

Please do NOT demand solution. people help here voluntarily. Avoid terms like URGENT/ASAP and posting in CAPS. This will actually put off people who want to help.

If you looked at the manual you would found the answer.

Put the CC name also in the RCPT to list and it will get you desired results. Check this example


Code:

//SYSUT1 DD *
    HELO YOURMVS
    MAIL FROM:<CAROL@YOURMVS>
    RCPT TO:<msgs@rsch.our.edu>
    RCPT TO:<alice@ai.our.edu>   << your cc name
    DATA
    Date: Thur, 26 Mar 92 21:48:57 EST
    From: Carol <CAROL@YOURMVS>
    To:   <msgs@rsch.your.edu>
    Cc:   <alice@ai.your.edu>    Subject: update

     Mike: Cindy stubbed her toe.  Bobby went to
           baseball camp.  Marsha made the cheerleading team.
           Jan got glasses.  Peter has an identity crisis.
           Greg made dates with 3 girls and couldn't
           remember their names.
     .
     QUIT
/*


Check this link for a detailed explanation.

http://www-01.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.halu001/ubsmtp.htm
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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