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 (March 2012, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 6 Mar 2012 14:43:03 -0600
Reply-To:     Joe Matise <snoopy369@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Joe Matise <snoopy369@GMAIL.COM>
Subject:      Re: macro question
Comments: To: mpajoh@odot.org
In-Reply-To:  <OF3AB7D2AB.72584B18-ON862579B9.00707A2E-862579B9.00712AF1@fd9ns01.okladot.state.ok.us>
Content-Type: text/plain; charset=ISO-8859-1

You need two pairs of double quotes in the find bit: %let cmd=tasklist | find ""&ThisProg."";

Then just one pair of double quotes in the file statement, leave off the ' which is of no help. " something ""stuff"" something " is translated to [something "stuff" something].

-Joe

On Tue, Mar 6, 2012 at 2:36 PM, Masoud Pajoh <mpajoh@odot.org> wrote:

> %macro test( ThisProg ); > %let cmd=tasklist | find "&ThisProg."; > file fname pipe "'&cmd.'"; > %mend test; > %test( xx ); > > how can I make the macro generate: > > filename fname pipe 'tasklist | find "xx"'; > > Thanks, > > Masoud >


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