Date: Wed, 5 Jun 2002 09:16:22 -0400
Reply-To: Charles Patridge <Charles_S_Patridge@PRODIGY.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Charles Patridge <Charles_S_Patridge@PRODIGY.NET>
Subject: Re: SAS V6.12 vs V8.2 - Macro Str with a %
Thanks to all - here is the shortest solution to my problem for both SAS
V6.12 and 8.2
I think this will do it - even though I do not like to turn off such
features.
/*****************************************************************/
/*** EMAILMSG.sas ***/
/*****************************************************************/
%macro emailmsg ( emailact, subj );
options nomerror;
%let mailcmda = %str( mail/subj="&subj" NL: "SMTP%%&emailact");
x &mailcmda ;;;
options merror;
%mend emailmsg;
/*** sample call
%emailmsg ( charles.patridge@thehartford.com, TESTING 99999 ) ;
***/
Thanks for the suggestion - I did try a numerous quoting variations but
without much success with respect to keeping the amount of code to a
minimum.
Charles Patridge
Email: Charles_S_Patridge@prodigy.net