BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
jainamistryx
Calcite | Level 5

Hi!

 

I am a new user of SAS and needed some help merging columns.

 

I have a dataset in which there are two columns and I would like them to be merged to produce one column however it will contain character and numerical values.

 

Section         Division                               I would like it to look like this ->                    Industry

A                  1                                                                                                                A1

B                  2                                                                                                                B2

B                  3                                                                                                                B3

C                 4                                                                                                                 C4

D                 5                                                                                                                 D5

 

just wondering how I would go about merging these two columns?

 

Thanks!

 

Jaina

 

1 ACCEPTED SOLUTION

Accepted Solutions
2 REPLIES 2
novinosrin
Tourmaline | Level 20

industry=cats(section, division);

jainamistryx
Calcite | Level 5

amazing, thanks so much!

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1068 views
  • 0 likes
  • 2 in conversation