Date: Tue, 19 Aug 1997 00:04:19 -0400
Reply-To: Anthony Ayiomamitis <ayiomamitis@IBM.NET>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Anthony Ayiomamitis <ayiomamitis@IBM.NET>
Subject: Re: ODD MACRO QUESTION
Content-Type: text/plain; charset=us-ascii
> I have a dataset as following, variable name is CMD.
> SAS macro codes, as values of CMD,
> are the observations, there are totally 4 observations.
> What I want to do is to compile macro TEST without
> creating a text file. CALL EXECUTE may help, but
> I tried and failed.
> Any help is much appreciated.
> Ziqing Pan
> %macro test;
> %let a=abc;
> %put &a;
> %mend test;
I hope my interpretation of what you are seeking is correct:
proc sort data=ziq nodupkey;
set ziq end=eof;
length values $200;
values = trim(values) || cmd;
if eof then
call symput ('values', values);