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

How to write a SAS email


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rajesh_kota

New User


Joined: 04 Mar 2008
Posts: 10
Location: chennai

PostPosted: Mon Jun 16, 2008 5:05 pm
Reply with quote

Does anybody know how to write macros for Email using SAS?
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Mon Jun 16, 2008 6:22 pm
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
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

Moderator Emeritus


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

PostPosted: Mon Jun 16, 2008 8:52 pm
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

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Jun 17, 2008 5:13 pm
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: 8797
Location: Welsh Wales

PostPosted: Sat Jun 21, 2008 4:29 pm
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Write line by line from two files DFSORT/ICETOOL 7
This topic is locked: you cannot edit posts or make replies. How To Write, Compile and Execute Cob... COBOL Programming 5
No new posts Compare two files with a key and writ... SYNCSORT 3
No new posts REXX to send an email in Mainframe wi... CLIST & REXX 3
No new posts JCL to write the log on to a PDS file JCL & VSAM 10
Search our Forums:

Back to Top