A SAS DATE and DATETIME variable are not CHARACTER-type, they are numeric. You must use the DATEPART function and likely a SAS DATE literal value in your SQL SELECT statement.
Scott Barry
SBBWorks, Inc.
Suggested Google advanced search arguments, this topic / post:
proc sql datepart function site:sas.com
using date datetime values site:sas.com
using date literal values site:sas.com
Message was edited by: sbb