Date: Thu, 9 Mar 2000 14:54:49 -0500
Reply-To: WHITLOI1 <WHITLOI1@WESTAT.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: WHITLOI1 <WHITLOI1@WESTAT.COM>
Subject: Dates can be tricky
Content-Type: text/plain; charset=US-ASCII
Subject: Dates can be tricky
Summary: This is only half a bug, but a disturbing half!
Respondent: Ian Whitlock <whitloi1@westat.com>
A colleague came with a problem similar to the one below. Her date
was not quite so far in the future but the value of QDT was the same.
In the original problem the date was typed into a flat file and read
in as control information for a much larger program.
1 data _null_ ;
2 input cdt $char11. ;
3 dt = input ( compress(cdt,"-"), date9. ) ;
4 qdt=put(dt,mmddyy8.) ;
5 put cdt= qdt=;
6 cards ;
CDT=2-FEB-2O22 QDT=02/02/02
NOTE: The DATA statement used 0.48 seconds.
This log comes from 6.12 under Windows 95, but the original
originated on 6.09E under VMS; and, of course, the results are same
in version 8.
There is no need to reply, just laugh or cry quietly when you spot
the problem.
Ian Whitlock