home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / bit / listserv / sasl / 3887 < prev    next >
Encoding:
Text File  |  1992-08-26  |  1.2 KB  |  36 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!paladin.american.edu!auvm!NIEHS.BITNET!WHITMIR1
  3. X-Envelope-to: SAS-L@VTVM2.BITNET
  4. X-VMS-To: IN%"SAS-L@VTVM2.BITNET"
  5. X-VMS-Cc: WHITMIR1
  6. Message-ID: <01GO14SNH7ZK8Y5GHH@NIEHS.BITNET>
  7. Newsgroups: bit.listserv.sas-l
  8. Date:         Wed, 26 Aug 1992 08:37:00 EST
  9. Reply-To:     WHITMIR1@NIEHS.BITNET
  10. Sender:       "SAS(r) Discussion" <SAS-L@UGA.BITNET>
  11. From:         WHITMIR1@NIEHS.BITNET
  12. Subject:      SAS date function
  13. Lines: 21
  14.  
  15. Hello everybody,
  16.  
  17. Is there any function in SAS regarding DATE function similar to INTNX function
  18. that does oposite of what INTNX function does?
  19. I am trying to go forward in time and I have a SAS date (MMDDYY8.) and I need to
  20. be able to reach the month and the year which is 15 years later than my original
  21.  
  22. date.
  23. ex.
  24.       dobmo = 4;
  25.       dobdy = 6;
  26.       dobyr = 62;
  27.       dob_dt = mdy(dobmo,dobdy,dobyr);
  28.       age = 15;
  29. I need to add 15 years to the dob date.  How can I get month value from this?
  30. I know that I can calculate the year by using year part of "dob_dt" and
  31. add it to the age variable.  The problem is the month.
  32.  
  33. Any solution ?
  34. Thank
  35. Please send your suggestion to: WHITMIR1@NIEHS.BITNET
  36.