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 from_dt ; put from_dt=; cards; 01/01/1960 00:00 ;run;
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 */
2.1m questions
2.1m answers
60 comments
57.0k users