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 (August 2008, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 11 Aug 2008 17:27:43 -0400
Reply-To:   "Howard Schreier <hs AT dc-sug DOT org>" <schreier.junk.mail@GMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Howard Schreier <hs AT dc-sug DOT org>" <schreier.junk.mail@GMAIL.COM>
Subject:   Re: EM_TO, EM_ATTACH and resolving variables

On Mon, 11 Aug 2008 13:44:54 -0700, JT <Railfan1975@GMAIL.COM> wrote:

>First off, I'm using SAS Enterprise Guide 4 and my data files are on a >Unix server. > >I've created a set of global variables to use in my code. I have two >variables EmailAdd and ExcelDir that I am using. > >Here's problem number 1. When I put the EmailAdd variable in a PUT '! >EM_TO!' statement, it will not resolve the variable. I've tried PUT '! >EM_TO! &EmailAdd.', PUT '!EM_TO!' &EmailAdd. and several other >variations and no luck. > >Problem number 2. When I try to do multiple attachments in the PUT '! >EM_ATTACH!' statement, it either will not resolve the variable >ExcelDir or it thinks the multiple attachments are one file name. >I've tried putting parenthesis around the names, spaces between them >and commas between them. No luck, and the help file is no good >either. > >Any help at all is appreicated. > >Thanks! > >Jonathan

I suspect that your problem has nothing to do with the intricacies of the PUT statement and the EMAIL Access Method.

Macro variables will not resolve inside a character literal bounded by single quotes. Use double quotes; to specify a double quote as part of the literal, repeat it, as in

"!em_attach! (""&ExcelDir\a.xls"" ""&ExcelDir\b.xls"")"


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