Date: Fri, 12 Mar 2004 07:00:16 GMT
Reply-To: Yanal Ansouqa <ansouqa@SBCGLOBAL.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Yanal Ansouqa <ansouqa@SBCGLOBAL.NET>
Organization: SBC http://yahoo.sbc.com
Subject: Re: look for a simple way to define a macro variable
Content-Type: text/plain; charset=us-ascii; format=flowed
John Cui wrote:
> Hi SAS-lers,
>
> I want to define 50 macro variables,each of which equals to the name of a
> variable in my dataset. By proc contents, I have a list of all variables
> names. Could there be a simple way to define 50 macro variables but one by
> one using %let statement.
>
> Thanks,
>
> John
You can always get proc contents to output a dataset, and then use
symget in a data _null_ to define the macro variables.
|