Hi, I want to extarct timestamp (Time_var) from sas Date_time. The format of datetime is 11-07-2015 11:46:02 So, I used the following code which is not working. I doubt that the space between the date and time is causing the error. Time_var=timepart(Date_time);
... View more