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?
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.