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

Hi,

  Am just trying to concatenate first and last name in the following format:

 

Doe, Jane

 

Simple concatenate keeps giving me DoeJane. How do I insert the comma and space?

1 ACCEPTED SOLUTION

Accepted Solutions
Astounding
Opal | Level 21

Can you do this in two steps?  First concatenate ', ' and then concatenate first_name to the result?

View solution in original post

7 REPLIES 7
Jagadishkatam
Amethyst | Level 16
try the catx function as below

catx(' , ', first,last);
Thanks,
Jag
Tihannah
Obsidian | Level 7

I'm in "new calculated item" field and it keeps telling me that "catx" is an unknown function? 

Jagadishkatam
Amethyst | Level 16
ok Sorry, this is a base sas function I mentioned. I am not familiar with BI, however somebody with BI would respond and provide the solution.
Thanks,
Jag
Tihannah
Obsidian | Level 7
I'm in SAS VA?
Astounding
Opal | Level 21

Can you do this in two steps?  First concatenate ', ' and then concatenate first_name to the result?

Tihannah
Obsidian | Level 7

That totally worked! Thank you!!

AnnaBrown
Community Manager

I'm glad you found the solution, Tihannah! If one of the replies was the exact solution to your problem, can you "Accept it as a solution"? Or if one was particularly helpful, feel free to "Like" it. This will help other community members who may run into the same issue know what worked.

Thanks!
Anna


Join us for SAS Community Trivia
SAS Bowl XXIX, The SAS Hackathon
Wednesday, March 8, 2023, at 10 AM ET | #SASBowl

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 7 replies
  • 10694 views
  • 3 likes
  • 4 in conversation