Is there a similar function I could use to create a variable when the A's are char variables and when more than one can be selected? This is another variable I am working on. If I do it this way, it overwrites. VARWANTED = max (A1, A2, A3); I used coalescec but it did not work either. "If then statements" give me the same issue. Arrays also don't work. array _A {*} A: ; do VARWANTED =1 to dim(_A); if _A{VARWANTED}>0 then output; end; Thank you. Raw Data file looks like . ID A1 A2 A3 1 70 100 5 2 . 3 . 3 16 59 30 4 18 . . if I use the max function: ID VARWANTED 1 70 2 3 3 16 4 18 I needed to have ID VARWANTED 1 70 1 100 1 5 2 3 3 16 3 59 3 30 4 18
... View more