Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to add group mail ids in JCL?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
sivasaras

New User


Joined: 29 Sep 2007
Posts: 90
Location: chenna/i-

PostPosted: Mon Aug 01, 2011 8:06 pm    Post subject: How to add group mail ids in JCL?
Reply with quote

Hi,

Kindly let me know how to add the below group id in my jcl

Quote:
upload_data@bulkmail.com
- this group has 3 persons mail ids

Please guide me.

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

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Aug 01, 2011 8:21 pm    Post subject:
Reply with quote

Hello,

Quote:
Kindly let me know how to add the below group id in my jcl

Put it where it belongs using an editor. . .

If you don't post something to work with, we can't provide much help. . .

At least you need to post the jcl and control statements you are trying to use and explain when you try this.

I suspect someone is running e-mail on your system and your course of action might be to clone one that works and change for your specifics.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8154
Location: East Dubuque, Illinois, USA

PostPosted: Mon Aug 01, 2011 8:35 pm    Post subject:
Reply with quote

Handling of groups is done by the mail server software -- NOT by the mainframe SMTP software. As long as the group name is in a valid format for email addresses, you can treat a group name just like any other email address.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Aug 01, 2011 8:56 pm    Post subject: Reply to: How to add group mail ids in JCL?
Reply with quote

Hi Robert,

Yup, i probably should have mentoined that. . . . icon_redface.gif

d
Back to top
View user's profile Send private message
baramesh

New User


Joined: 20 May 2008
Posts: 21
Location: bangalore

PostPosted: Wed Aug 03, 2011 5:10 pm    Post subject:
Reply with quote

//IEBGENER JOB ACCT,'DATA COPY',MSGCLASS=J,CLASS=A
//NORMRC EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD *,LRECL=80
HELO <SYSTEMID>
MAIL FROM:<USERID@SYSTEMID>
RCPT TO:<USERID@SYSTEMID>
DATA
From: <USERID@SYSTEMID>
To: <USERID@SYSTEMID>
Subject: Test Mail

TEST MAIL FROM MAINFRAME
.
QUIT
/*
//SYSUT2 DD SYSOUT=(B,SMTP),LRECL=80
//SYSIN DD DUMMY
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8154
Location: East Dubuque, Illinois, USA

PostPosted: Wed Aug 03, 2011 5:31 pm    Post subject:
Reply with quote

baramesh, you answered the wrong question. There was no request on how to send an email -- presumably the original poster already knew how to do what you posted. The question was about using a group name instead of individual name in the RCPT TO: field.

Further, your sample code is completely wrong unless you point out that SYSOUT=(B,SMTP) is site-dependent. The B would not work in my shop since we use class 9 for emails -- other sites may use something else, such as M. The SMTP is the name of the started that that is executing SMTP, and that may be changed by the site as well (my site has two of them, for example -- SMTP and SMTPNFK).

Further, the LRECL=80 on the SYSOUT=(B,SMTP) is absolutely wrong. If you check RFC 2821 and RFC 2822 on the Internet standards for email, you will find that the LRECL can be as big as 998 bytes (1000 is the limit but there must be an allowance for end of line and carriage return terminators).
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts column with count of rows within dist... ronald wouterson DB2 4 Sun Sep 17, 2017 9:48 pm
This topic is locked: you cannot edit posts or make replies. Limit access to certain RACF group cvnlynn CLIST & REXX 5 Wed Aug 23, 2017 2:28 am
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts Need Help with : IFTHEN(WHEN=GROUP) Sumanta_89 DFSORT/ICETOOL 1 Wed Apr 19, 2017 5:23 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us