I have data in csv format with a certain timestamp field in this format:
‘ 2009-07-30 20:50:19’
How can I read that into a SS dataset? Ive been trying this, but to no avail.
data filecontents;
infile "C:\es.txt" dlm=',' MISSOVER DSD firstobs=2 lrecl=32767 ;
input START_TIME :ANYDTDTM.
FORMAT START_TIME datetime.
Thanks.
Seems fine to me. The below code works on my machine (9.3 TSM2). What happens for you? Are you just missing a semicolon after the input statement (your example code is)?
result:
For what it’s worth, YMDDTTMw.d is the specific informat for that (ANYDTDTM. will work as well of course).