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 (March 2000, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 9 Mar 2000 14:54:49 -0500
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
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 <>

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

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