Hi there Fairly new to SAS and would really appreciate help with a particular problem. I have a dataset comprising multiple rows per person. For each person, I would like to transfer the maximum value from variable 1 (var1) onto all the other rows for that person and into a new variable (newvar). e.g. ID Var1 1 4 1 5 1 2 1 2 -- 2 6 2 9 2 1 2 0 ....would become..... ID Var1 Newvar 1 4 5 1 5 5 1 2 5 1 2 5 -- 2 6 9 2 9 9 2 1 9 2 0 9 Any advice much appreciated! Thank you
... View more