Date: Tue, 11 Aug 2009 10:20:37 -0700
Reply-To: SAS_learner <proccontents@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: SAS_learner <proccontents@GMAIL.COM>
Subject: Hardcoding a Pt (using &sysdate)
Content-Type: text/plain; charset=ISO-8859-1
Hello all,
I am trying to delete a Pt Just for now as there is problem with that Pt in
database, which would be updated in Oct. So for that reason I am trying to
use sysdate to tell the sas program that if it is before oct 2009 then it is
Okay to delete that subject but after that it is not.
Here some how &sysdate is giving only two year date and Format is
complaining ?? I am not sure where I am doing wrong.
I am using EG and need to run the program on Unix.
Data Val_adsl ;
set adsl (Where=(Safety = 'Y' ) Keep = Usubjid safety rfstdt rfendt
Subjid armcd ) /**/;
P_d = Put(&sysdate.,mmddyy10. ) ;
Format p_d date9. ;
Run;
thanks
SL