Send Seasons Greetings – in SAS

This post was kindly contributed by SASopedia - go there to comment and to read the full post.

On this festive season, you can send cool animated images to your loved ones – a la SAS way!!! Here is how you do it.

  • Add a filename email with the required to/cc/bcc id’s.
  • Include the HTML img tag and give the following source path as shown below.
  • You can also hyperlink it to your website if you might want to…

FILENAME mail1 EMAIL
TO=(“getpramod.r@tgmail.com” )
From =(“getpramod.r@gmail.com”)
SUBJECT =”Season’s Greetings”
type=”text/html”
CT= “text/html” ;

DATA _NULL_;
FILE mail1;
PUT ‘ Wish You a Merry Chirstmas!!! ‘;
PUT ‘http://2.bp.blogspot.com/_HV9w9_0BEgE/TRmqNR8gtlI/AAAAAAAAAd0/sHaxYi5XzFc/s320/merry_christmas_animated.gif’;
PUT ‘And a Happy New Year!!! ‘;
PUT ‘http://4.bp.blogspot.com/_HV9w9_0BEgE/TRmqfRCHBwI/AAAAAAAAAd4/MEX-HTubTwI/s320/HappyNewYearAll.gif’;
run;

Execute the above code and lo-behold!! You get an animated gif in your mail body as shown below:

Wish You a Merry Chirstmas!!!

And a Happy New Year!!!

Wish you all a Merry Christmas and a Prosperous New year!!!

This post was kindly contributed by SASopedia - go there to comment and to read the full post.