title: How to duplicate a variable in a dataset in SAS
body: <p>I have a variable with 54 observations. How do I make the variable repeat several times over in a dataset?</p>
  
  <p>ex: </p>
  
  <pre><code>Var1   Var2   Var3
   2       4      5
   4       5      7
   6       3      6
  </code></pre>
  
  <p>but I want it to look like</p>
  
  <pre><code>Var1   Var2   Var3
   2       4      5
   4       5      7
   6       3      6
   2       4      5
   4       5      7
   6       3      6
   2       4      5
   4       5      7
   6       3      6
  </code></pre>
  
  <p>edit: </p>
  
  <p>I'm trying to do in SAS what is done in R by:<br>
      <code>x = cbind(1.5, 17, 2.5, 12, 19.3)
      y = rep(x,times=4)
      y</code></p>
  
  <p>I have a do loop in SAS but it just repeats each observation instead of repeating the entire vector.</p>