IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to add group mail ids in JCL?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sivasaras

New User


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

PostPosted: Mon Aug 01, 2011 8:06 pm
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

Moderator Emeritus


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

PostPosted: Mon Aug 01, 2011 8:21 pm
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Aug 01, 2011 8:35 pm
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

Moderator Emeritus


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

PostPosted: Mon Aug 01, 2011 8:56 pm
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: 25
Location: bangalore

PostPosted: Wed Aug 03, 2011 5:10 pm
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Aug 03, 2011 5:31 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare latest 2 rows of a table usin... DB2 1
No new posts mail attachment with excel format All Other Mainframe Topics 2
No new posts Problem with IFTHEN=(WHEN=GROUP,BEGIN... DFSORT/ICETOOL 5
No new posts Splitting group records based on deta... DFSORT/ICETOOL 8
No new posts SORT HELP - SORT A COLUMN and GROUP B... DFSORT/ICETOOL 9
Search our Forums:

Back to Top