ead=cats('z',level_1,level_2,level_4,level_6);
what does this do?
Please consult the documentation: CATS Function and come back if details are unclear to you.
It concatenates the string 'z' with the strings listed in the columns that are specified as arguments. It removes leading and trailing blanks before concatenation, I think.
The CATX function will also remove leading and trailing blanks. The CAT function keeps them.
@HeatherNewton wrote:
ead=cats('z',level_1,level_2,level_4,level_6);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?
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.
Ready to level-up your skills? Choose your own adventure.