I'm trying to consolidate some code. Currently, I have: For group X: PROC SQL; select Var_A, Var_B, Var_C from mytable; For group Y: Proc SQL; Select Var_A, Var_C, Var_D from mytable; is there a way to say; Proc SQL; Select [variables contingent on group] from mytable; FYI-using SAS EG 7.15 with connection to Hadoop data. My actual data has 50 groups and over 100 variables, so I'd like to make this as dynamic as possible. The key point is I don't want all of my variables for all of my groups. Thanks.
... View more