Date: Wed, 9 Jan 2008 09:27:17 -0600
Reply-To: "data _null_," <datanull@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "data _null_," <datanull@GMAIL.COM>
Subject: Re: Strange macro behaviour
In-Reply-To: <478ae037-1832-481b-be7f-d35dcfbadf3b@v29g2000hsf.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
But if you didn't have the MACRO with all that superfluous quoting
then you would'nt have the problem.
Pehaps you could rethink the problem and remove the macro and quoting.
Maybe you could use ...
data work.TF / view=work.TF;
set sashelp.class;
array _t[*] age height weight;
trans = '1 ';
output;
trans = 'LOG';
do _n_ = 1 to dim(_t);
_t[_n_] = log(_t[_n_]);
end;
output;
run;
proc sort data=work.tf out=work.class;
by trans;
run;
proc print;
run;
On Jan 9, 2008 9:16 AM, EsaV <Esa.Virtala@gmail.com> wrote:
> Sorry about the confusion.
>
> The main point is the strange behaviour of parameter S1:
>
> S1=%STR(_LOG=LOG%() does not work
> vs.
> S1=_LOG%STR(=LOG%() works
>
> -Esa
>
|