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?
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.