title: How to use all variable names in variable list inside proc freq
body: <p>I am trying to use all variable names in the variable list (varlistc) inside proc freq. However, PROC FREQ only provided output for the last variable name in varlistc. How can I fix this?</p>
  
  <pre><code>proc sql noprint;
  select name 
  into :varlistc separated by ' '
  from data2c;
  quit;
  
  proc freq data=&amp;data1;
  table &amp;varlistc*site;
  run;
  </code></pre>