sas informat datetime

前端 未结 5 2093
我寻月下人不归
我寻月下人不归 2020-12-15 12:25

Can anyone advise on the appropriate SAS informat to read in a datetime (dd/mm/yyyy hh:mm) ???

eg

data _null_;
informat from_dt datetime????.;
input         


        
5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-15 13:10

    The anydt* family of informats do work, usually.

    data _null_;
      from_dt = input("01/01/1960 00:00", anydtdtm.);
      put from_dt= :datetime20.;
    run;
    /* on log
    from_dt=01JAN1960:00:00:00
    */
    

提交回复
热议问题