Date: Tue, 8 May 2007 05:30:35 -0400
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
Subject: Re: Possible to set macro var to datastep varname within datastep?
Apologies that was a poor example as it implied a numeric variable. It is
actually safe to assume the variable is always text.
So the example should be :-
x="abc";/*x may be called y but valx should run the same for both*/
On Fri, 4 May 2007 10:49:58 -0400, ben.powell@CLA.CO.UK wrote:
>I have a snippet of code to run in a datastep as a macro - so the same code
>is run wherever by autocall. Is it possible to test for the var that code
>should run against within the same datastep and pass it to the macro? Is it
>possible to do all this in the same macro?
>x="abc";/*x may be called y but valx should run the same for both*/
>The situation arises to cater for when non-standard var lengths are
>encountered, e.g. the import variable temp is converted to the standard
>Any comments much appreciated.