Hi @Emma8 Please try-
data want;
set have;
array f fee_:;
array s score_:;
_n_=whichn(1, of f(*));
if _n_ then want=s(_n_);
run;
Hi @Emma8 Please try-
data want;
set have;
array f fee_:;
array s score_:;
_n_=whichn(1, of f(*));
if _n_ then want=s(_n_);
run;
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.