home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!europa.asd.contel.com!paladin.american.edu!auvm!NIHCU.BITNET!UBY
- Message-ID: <SAS-L%92122913113833@UGA.CC.UGA.EDU>
- Newsgroups: bit.listserv.sas-l
- Date: Tue, 29 Dec 1992 13:09:18 EST
- Reply-To: Jim Blakley <UBY@NIHCU.BITNET>
- Sender: "SAS(r) Discussion" <SAS-L@UGA.BITNET>
- From: Jim Blakley <UBY@NIHCU.BITNET>
- Subject: Re: SAS date informats
- Lines: 18
-
- > I have an ascii file that has dates for which I've not been
- > able to find informats when reading it. One of the dates is
- > in the form mmddyyyy eg. 06231984. The other one is in the
- > form mmyy eg. 0790. I'm using PC SAS 6.04 but I've to admit
- > that my manuals are for 6.03. Any quick help will be much
- > appreciated.
-
- There may be recent informats for PC SAS, but I no longer have those
- manuals. However, a more general stratagy that should work for either
- of the dates is to read the component parts of the dates into seperate
- numeric variables and then use the MDY function to create the SAS date
- variable. For example:
-
- DATE1 = MDY(MM,DD,YYYY); * First Date ;
- DATE2 = MDY(MM2,1,YY); * Second Date - Assumes day = 1 ;
-
-
- Jim Blakley UBY@NIHCU
-