title: SAS Is it possible not to use "TO" in a do loop in MACRO?
body: <p>I used to use a <code>%do ... %to</code> and it worked fine , but I when I tried to list all character values without  <code>%to</code> I got a message  <code>ERROR: Expected %TO not found in %DO statement</code> </p>
  
  <pre><code>%macro printDB2 ; 
  %let thisName = ;
  %do &amp;thisName = 'Test1' , 'Test2' , 'Test3' ;
  proc print data=&amp;thisName ;
  run ;
  %end ;
  %mend printDB2 ;  
  </code></pre>
  
  <p>I know how to complete this task using <code>%to</code> or <code>%while</code> . But I am curious is it possible to list all character values in the <code>%do</code> ? How can I %do this ?</p>