sas - How to use all variable names in variable list inside proc freq -


i trying use variable names in variable list (varlistc) inside proc freq. however, proc freq provided output last variable name in varlistc. how can fix this?

proc sql noprint; select name  :varlistc separated ' ' data2c; quit;  proc freq data=&data1; table &varlistc*site; run; 

just reference, proc freq allows clearer syntax:

every variable list in first brackets cross-applied variable (or list of variables in brackets) after asterix.

proc sql noprint; select name :varlistc separated ' ' sashelp.class; quit;   proc freq data=&data1; table ( &varlistc ) * site; run; 

could e.g.:

proc freq data=&data1; table ( &varlistc ) * (site1 site2); run; 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -