|
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.
|