title: length and informat different from format
body: <p>Basically, I want the <code>ETHNIC</code> variable in the format where <code>length</code>, <code>format</code> and <code>informat</code> are all <code>$22</code>. However when I run the following code and check the variable attributes it states that the <code>format</code> is <code>$22</code> but the <code>length</code> is <code>2</code> and <code>informat</code> is <code>$2</code></p>
  
  <pre><code>data ETHNIC;        
  set ethnicity;
  format ETHNIC $ 22.;    /*the format I need, but it doesn't seem to work as I wanted*/
      if ETHNIC='1' then do;
          ETHNIC='Hispanic or Latino';
      end;
      if ETHNIC='2' then do;
          ETHNIC='Not Haspanic or Latino';
      end;
      keep SUBJID ETHNIC;
      run;
  </code></pre>
  
  <p>how do I get all three to be <code>$22</code></p>