Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
How to write a SAS email

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Other Mainframe Topics
Author Message
rajesh_kota

New User


Joined: 04 Mar 2008
Posts: 10
Location: chennai

PostPosted: Mon Jun 16, 2008 5:05 pm    Post subject: How to write a SAS email
Reply with quote

Does anybody know how to write macros for Email using SAS?
Back to top
View user's profile Send private message
References
PostPosted: Mon Jun 16, 2008 5:05 pm    Post subject: Re: How to write a SAS email Reply with quote

Moved: Mon Jun 16, 2008 5:07 pm by superk From Mainframe COBOL to Other Mainframe Topics
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3081
Location: Charlotte,NC USA

PostPosted: Mon Jun 16, 2008 6:22 pm    Post subject: Reply to: How to write a SAS email
Reply with quote

Is the example shown here sort of what you're looking for?
Back to top
View user's profile Send private message
rajesh_kota

New User


Joined: 04 Mar 2008
Posts: 10
Location: chennai

PostPosted: Mon Jun 16, 2008 6:37 pm    Post subject:
Reply with quote

no...i want to send an email to some persons on the particular date of the every year...for example november 30...for that i want one program...
Back to top
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 7471
Location: 221 B Baker St

PostPosted: Mon Jun 16, 2008 8:52 pm    Post subject:
Reply with quote

Hello,

Is there some particular reason to use SAS? If you search in the forum there are multiple examples of a batch job sending an e-mail.

To solve your NOV 30 requirement, you could have the job scheduled to be run every year on that date.
Back to top
View user's profile Send private message
Robert Sample

Senior Member


Joined: 06 Jun 2008
Posts: 333
Location: Atlanta, GA

PostPosted: Tue Jun 17, 2008 5:13 pm    Post subject:
Reply with quote

SAS Code that I run to generate emails:
Code:
//         OPTIONS='EMAILPORT=25,EMAILHOST=********.NET'
//SYSIN    DD   *
PROC OPTIONS GROUP=EMAIL;
DATA MYFILE;
     INPUT VAR1 $5.;
     CARDS;
TEST1
TEST2
;
FILENAME TEMP EMAIL
              TO='RSAMPLE@********.NET'
              SUBJECT='SAS EMAIL'
              TYPE='TEXT/HTML';
ODS HTML FILE=TEMP RS=NONE;
PROC PRINT DATA=MYFILE;
RUN;
ODS HTML CLOSE;
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 2910
Location: Brussels once more ...

PostPosted: Sat Jun 21, 2008 4:29 pm    Post subject:
Reply with quote

rajesh_kota wrote:
no...i want to send an email to some persons on the particular date of the every year...for example november 30...for that i want one program...

And the business requirement for this is ???
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1