LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (March 2004, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
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.

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