09-12-2014 08:24 AM
Do you want to concatenate the values of the variables into a new field? Or create a SAS macro variable with the variable names?
If the latter, try something like this:
If the former, then you can use one of the CAT functions (such as CATX) to create a new value in your DATA step:
newVal = CATX(' ',x,y,z);
That's not a macro var though. If you need the macro variable you'll need to decide which particular record you want to represent, calculate the value, and you can use CALL SYMPUT to stuff it into a macro variable for use later in your program.
Need further help from the community? Please ask a new question.