'Milliseconds in SAS

like current time/date, is it possible to get the current milliseconds in 6 digits?

I am using datetime and date to get the timestamp n date

call symput('currdatets',datetime());
call symput('currdate',date());


Solution 1:[1]

data _null_;
    call symput('nowAsDateTime',put(datetime(), datetime26.6));
    call symput('nowMs',1E6 * datetime()); * but this might generate overflow *;
    call symput('nowMsOnly',1E6 * mod(datetime(), 1));
run;
%put  _USER_;

Solution 2:[2]

data _null_;
  dt = datetime() ;
  ms = mod(dt,1) ; /* remainder when divided by 1 */
  put dt= ms= ;
run ;

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Chris J