Hi All,
I am in need of your help to resolve below mentioned issue with respect to SAS dates.
DATA SET EMP:
EMP NO DOJ
123456 03/06/2000
345678 09/06/2008
123678 21/06/2010
346678 10/07/2013
%LET LAP_DAT_IND = &ASATDATE;
PROC SQL;
CREATE TABLE ABC AS
SELECT * FROM EMP
WHERE DOJ < &LAP_DAT_IND.
QUIT;
ASATDATE variable comes as input from application (format is 03-06-2013) and this value needs to be passed as '03JUN2013'd. Could you please let me know how to change this.
Thanks.
You don't need a date constant using the interger value will work as well in your code.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.