Can you give an example of what the DB2 timestamp looks like and what you mean by "handle" it.
If you're trying to read it in to be a SAS date, most databases use the format which SAS calls "DATETIME20." (I don't know DB2 specifically though). If you are reading in the data from a text file you can specify the informat for the field:-
Code:
informat <fieldname> DATETIME20.;
then do your input statement. If you want the date part of it separated out from the time, then you can use the DATEPART() function:-
Code:
newfield = datepart(<fieldname>);
I hope this helps.
Chris
Business Analyst, Code Monkey, Data Wrangler.
SAS Guru.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.