Monday, February 10, 2014

Sending emails through SAS

I am not sure if there is any practical use for sending emails through SAS. But this SAS micro was picked up from RTP SAS User Group Email List and it works very well. The credit goes to Mr Ping Ling. 
 
 
 %macro sendemail(to=,cc=,subj=,msg1=,msg2=,msg3=,msg4=,msg5=,msg6=,msg7=,msg8=,attach=);
         FILENAME mail EMAIL (&to.)
         EMAILID='Microsoft Outlook'
         SUBJECT="&subj."
         %if &cc. ne %then %do;
           cc="&cc."
         %end;
         %if &attach. ne %then %do;
           attach="&attach."
         %end;
;
         %let today=%sysfunc(date(),date9.);

         DATA _NULL_;
           FILE mail;
           PUT "&today.";
           PUT;
           PUT "&msg1.";
           %do i=2 %to 8;
             %if &&msg&i. ne %then %do;
               %if %sysfunc(compress("&&msg&i."))="/n" %then %do; put; %end;
               %else %do; PUT "&&msg&i. "; %end;
             %end;
           %end;
           put;
         run;
%mend;

/*Example for using the macro
     %sendemail(to=%str('abc123@hotmail.com','xxx@gmail.com'),
                subj=%str(Sending email with SAS),
                msg1=%str(This is a test.),
                msg2=%str(/n),
                msg6=%str(xxxx)
                );

*/

Sunday, February 02, 2014

Conference in Research Triangle Park, NC: TRENDS AND INNOVATIONS IN CLINICAL TRIAL STATISTICS (2014)

The research triangle area in North Carolina is one of the area with the concentrated talents in statistics and biostatistics. All three big universities (University of North Carolina, North Carolina State University, and Duke University) have great training programs in statistics and biostatistics. There are also many statisticians working in the pharmaceutical companies, biotech companies, CROs, and medical centers. Correspondingly, there should have been more conferences in clinical trial statistics.

The following conference is one that will be held at April 21-23, 2014 in Durham, North Carolina - the heart of the Research Triangle Park. 


Trends and Innovations in Clinical Trial Statistics (2014)
Link to the event homepage:
http://biopharmnet.com/wiki/TICTS_2014

Link to the conference agenda:

http://www.biopharmnet.com/doc/ticts2014.pdf

Link to the event registration form:
https://www.regonline.com/TICTS2014