|
|
| Author |
Message |
rajesh_kota
New User
Joined: 04 Mar 2008 Posts: 10 Location: chennai
|
|
|
|
| Does anybody know how to write macros for Email using SAS? |
|
| Back to top |
|
 |
References
|
Posted: Mon Jun 16, 2008 5:05 pm Post subject: Re: How to write a SAS email |
 |
|
|
 |
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
|
|
|
|
| Is the example shown here sort of what you're looking for? |
|
| Back to top |
|
 |
rajesh_kota
New User
Joined: 04 Mar 2008 Posts: 10 Location: chennai
|
|
|
|
| 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 |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 7471 Location: 221 B Baker St
|
|
|
|
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 |
|
 |
Robert Sample
Senior Member
Joined: 06 Jun 2008 Posts: 333 Location: Atlanta, GA
|
|
|
|
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 |
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 2910 Location: Brussels once more ...
|
|
|
|
| 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 |
|
 |
|
|