Help using Base SAS procedures

how to read millisecond

Accepted Solution Solved
Reply
Contributor
Posts: 22
Accepted Solution

how to read millisecond

I have a timestamp in string; Any better way to create SAS datatime with keep millisecond? data x; timestamp="2013-07-01-01.06.15.918000"; sas_datetime=input(timestamp,anydtdtm.)+substr(timestamp,20); format sas_datetime datetime26.6; run; proc print; run;


Accepted Solutions
Solution
‎07-23-2013 03:10 PM
Respected Advisor
Posts: 3,799

Re: how to read millisecond

input(timestamp,ymddttm30.)

View solution in original post


All Replies
Solution
‎07-23-2013 03:10 PM
Respected Advisor
Posts: 3,799

Re: how to read millisecond

input(timestamp,ymddttm30.)
🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 2070 views
  • 1 like
  • 2 in conversation