home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / bit / listserv / sasl / 5483 < prev    next >
Encoding:
Text File  |  1992-12-29  |  1.2 KB  |  30 lines

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