Hi,
What i need to do is create format for all possible values of a variable using proc format
For example if i have country_code and country_name as fields, what i want to do is
Proc format;
values $cntry
"US" = ""UNITED STATES OF AMERICA
"IND" = "INDIA"
....
....
till all possible values
run;
How can i do that in macros? What i did was took all possible values in different macros using call symput and count also but dont know how to write out the values part.
Regards,
Saurabh
you can use your dataset to create format. search create format from sas dataset:
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.