title: how to read date and time from txt file using sas
body: <p>I'm very new to SAS and I'm trying to read a txt file that contains date and time. The file is shown in the following figure<a href="https://i.stack.imgur.com/u7bww.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u7bww.png" alt="enter image description here"></a></p>
  
  <p>I believe I have tried all the possible options that I can think of to read the file but the output is still in numeric form. The following is the code I'm using </p>
  
  <pre><code>data wb_bg_1619;
       infile "C:\Users\daizh\Desktop\Ren\SAS\wb_bg_0215.txt" firstobs=3 missover;
  
       informat DATE DATE7. TIME TIME5. ;
       input DATE TIME BG;
       run;
  proc print data=wb_bg_1619;
  run;
  </code></pre>
  
  <p>The output looks like this</p>
  
  <p><a href="https://i.stack.imgur.com/Jnw3t.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Jnw3t.png" alt="enter image description here"></a></p>