I am trying to use CATX() to concatenate lists of character variables of within a dataset, each of which contains a different number of missing variables on the right end. I am getting them concatenated successfully, but all of the lists are ending with , . (the separator and then a dot). I am trying to get rid of this, but can't seem to figure out a way. Code: data sport_part_report;
set all_schools_sport_t;
sports = catx(", ", OF col1-col14);
drop school_id _name_ _label_ col1 col2 col3 col4 col5 col6 col7 col8 col9 col10 col11 col12 col13 col14;
run; Output example: BA-M, LA-W, SB-W, .
... View more