Please consult the documentation: CATS Function and come back if details are unclear to you.
The CATX function will also remove leading and trailing blanks. The CAT function keeps them.
what does this do?
<Pedantic mode: on>
Since it is not part of a data step or other procedure that allows such code it does nothing and probably throws an error.
</Pedantic mode: off>
Have you tried placing the cursor in the SAS editor on the function, such as CATS, and pressing F1? Does anything happen?
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.
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.