LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2002, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


Back to: Top of message | Previous page | Main SAS-L page