BookmarkSubscribeRSS Feed
Lilik
Fluorite | Level 6

Good day dear All,

I have some difficulties in finding continent names in sashelp.demographics. The requirement is to  "Get the CONTNAME variable with the following values, without using any formats". In dataset there are continent codes. Could you help me with this?

Thanks in advance.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 REPLY 1
ballardw
Super User

If you are supposed to be looking for specific values then you should share the specific values you are using.

 

 "Get the CONTNAME variable with the following values, without using any formats". My first thought would be to use an INFORMAT, which is not a Format, but I suspect that you are supposed to build a table with the actual values of the CONTNAME variable and the associated values you want to use as part of join to get the desired values. The easiest way to do that would likely be a data step reading the paired values.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1276 views
  • 0 likes
  • 2 in conversation