title: Using varlist multiple times in Stata
body: <p>I have three variables varA, varB and varC.<br>
  I attempted to first replace "missing" with NA in all three variables then add a label to all three variables.</p>
  
  <p>First I replaced "missing" with NA:</p>
  
  <pre><code>local mylist1 varA-varC
  foreach v1 of varlist `mylist1'  { 
     replace `v1'="NA" if `v1' =="missing"
  }
  </code></pre>
  
  <p>Now if I want to call the list again to add the same label to all three variables:</p>
  
  <pre><code>foreach v1 of varlist `mylist1' {
     label var `v1' "testvaraible"
  }
  </code></pre>
  
  <p>but I will get an error message saying : </p>
  
  <pre><code>varlist required
  </code></pre>
  
  <p>Could anyone explain why I can't recall the list?  </p>