title: SAS - Dynamically create column names using the values from another column
body: <p>I Have a column with many flags that were parsed from a XML parser. Data looks like this: </p>
  
  <pre><code>USERKEYED=Y;VALMATCH=N;DEVICEVERIFIED=N;EXCEPTION=N;USERREGISTRD=N;ASSOCIATE=Y;EXTERNAL=N;GROSSGIVEN=Y;UMAPPED=N;
  </code></pre>
  
  <p>I have to create a table with all these column names to capture the flags. Like: </p>
  
  <pre><code>USERKEYED VALMATCH DEVICEVERIFIED EXCEPTION USERREGISTRD ASSOCIATE EXTERNAL GROSSGIVEN UMAPPED 
  Y  N N N N Y N Y N 
  Y  N N N N Y Y Y N 
  Y  N N Y N Y N Y N 
  </code></pre>
  
  <p>How can I capture values dynamically in SAS? Either in a DATA step or a PROC step? </p>
  
  <p>Thanks in advance. </p>