Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date comparisions

Status
Not open for further replies.

sujain

Programmer
Jun 12, 2012
1
0
0
US
Hi,

I am new to SAS, the program below does not work, gives me this error:

ERROR: File WORK.ADMITDATE1.DATA does not exist.

I would really appreciate the help.
Thanks,
Sudhir

data frequency;
input AdmitDate1 date9.;
set AdmitDate(keep=AdmitDate1
where=(AdmitDate1 between '01Jan2003'd and
'30Jun2006'd));
format AdmitDate mmddyy10.;
datalines;
01Apr2002
01Apr2004
01Apr2005
01Apr2006
;
title "Frequency of Admissions";
proc print data=frequency ;
run;


 
Hey buddy, do like this ok

data frequency(keep=admitdate1 where=(admitdate1 between between '01Jan2003'd and
'30Jun2006'd));
input admitdate1 date9.;
format AdmitDate mmddyy10.;
datalines;
01Apr2002
01Apr2004
01Apr2005
01Apr2006
;
title "Frequency of Admissions";
proc print data=frequency ;
run;
This sud work fine.Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top