title: How to read variable names in a SAS data set?
body: <p>Are there any statements\functions capable of get the name of variables?
  Preferrably putting them into a column of another data set, a text field or a macro variable.</p>
  
  <p><strong>E.g.</strong></p>
  
  <p><strong>- Data set 1</strong></p>
  
  <pre><code>Name age sex
  
      Jk   14   F
      FH   34   M
  </code></pre>
  
  <ul>
  <li><p>Expected data set</p>
  
  <p><strong>Var_name_of_dataset1</strong></p>
  
  <pre><code>Name
  age
  sex
  </code></pre></li>
  </ul>
  
  <p>PS: I know a statement: select into, which does sth relevantly
  It can read the value of a column into a field with customized separetors, and therefore wish there are similar ways of reading column names into a field or a column.</p>
  
  <p>Thanks</p>