Here’s a macro that can put distinct values of a variable in a SAS dataset to a macro variable of your choice.%macroput_distinct_varvalues_in_list(dsn,var,mac_var,dlm=comma,quotes=double); %global&mac_var.; …
Here’s a macro that can put distinct values of a variable in a SAS dataset to a macro variable of your choice.%macroput_distinct_varvalues_in_list(dsn,var,mac_var,dlm=comma,quotes=double); %global&mac_var.; …