title: How use PUT and INPUT numeric in SAS
body: <p>I have a issue with the cast using PUT and INPUT for some columns in a SAS table.</p>
  
  <p>I trying to format : </p>
  
  <pre><code>               ###I need:          Using: 
  tipdoc='01' -&gt; tipdoc=1            input(tipdoc, 1.)
  coddoc=1234 -&gt; coddoc=00001234     put(coddoc, z8.) 
  
  </code></pre>
  
  <p>but, I have this result : </p>
  
  <pre><code>tipdoc=0
  coddoc=       .
  </code></pre>
  
  <p>Could you have some ideas? 
  Thanks.</p>