BookmarkSubscribeRSS Feed
Visser
Calcite | Level 5

I want to combine the text of several columns into 1 computed column using SAS Query builder. I can't seem to figure it out 😞

3 REPLIES 3
againreddy
Obsidian | Level 7
on Query builder -> Click on "Computed column" -> Click on "New" -> Select "Advanced Expression" -> Type trim(column1)||trim(column2)||trim( column3)
-> click on "next" -> Enter new column name and click on "Finish"

Notes:
1. Column1 to 3 are your columns in your table
2.You can use trim/compress functions based on your choice.
Visser
Calcite | Level 5

Thx! It worked!

TomKari
Onyx | Level 15

There are also a number of cat... functions that are great for this kind of thing; cat, catq, cats,catt, catx.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 2660 views
  • 0 likes
  • 3 in conversation