Posted By

mprabhuram on 03/02/11


Tagged

untagged


Versions (?)

Convert character field in to SAS date field


 / Published in: SAS
 

URL: http://www2.sas.com/proceedings/sugi28/066-28.pdf

  1. data l.zz_test_1;
  2. set l.zz_test;
  3. _t = SUBSTRN(left(time_stamp),1,10) ;
  4. format ts_1 date7.;
  5. TS_1 = input(_t,mmddyy10.);
  6. run;

Report this snippet  

You need to login to post a comment.