LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (August 1998, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 10 Aug 1998 11:39:27 GMT
Reply-To:     Howard Schreier <HSchreier@IGC.ORG>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         Howard Schreier <HSchreier@IGC.ORG>
Organization: Institute for Global Communications
Subject:      SAS DATE PROBLEM

The statement would be

where brthdt lt '01jan1996'd;

I think the single quotes probably got stripped accidentally in the e-mail process.

It's not really a trick. This is a WHERE statement comparing a variable to a constant. It does require a specific bit of knowledge: how to code a date constant. This is covered on p. 115 of the SAS Language Reference, Version 6, First Edition.

> Date: Fri, 7 Aug 1998 13:26:07 PDT > From: Cybie Frontier <cybie@HOTMAIL.COM> > > Well, I just a neat trick to handle my date problem. > I should have coded it as : > where brthdt lt 01jan1996 d; > run; > It worked fine. However, where the heck do you get this info on this > trick? > CF


Back to: Top of message | Previous page | Main SAS-L page