Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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 -> All Other Mainframe Topics
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    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

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4649
Location: Raleigh, 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

Site Director


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

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

Global Moderator


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

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: 8593
Location: Back in jolly old England

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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am
No new posts EMAIL using IEBGENER - SMTP parasmalik20 JCL & VSAM 4 Tue May 23, 2017 12:19 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us