White Papers
Improve Your Dating: The INTNX Function Alignment Value SAMEDAY
Overview The data step function INTNX returns a SAS date value incremented by a specified number of intervals (days, weeks, months, quarters, years, etc.). INTNX's optional fourth argument determines how the SAS date is aligned before it is incremented. In Version 9, a new alignment value was added: "sameday", which preserves the SAS date value's alignment within the interval before it is incremented. intnx('year','20nov2002'd,-1,"sameday") is the SAS date value for November 20, 2001. This paper illustrates the use of "sameday", including interesting cases such as one year and four years after February 29, 2000 and one month before March 31, 2003 and March 31, 2004.
| Publisher | SAS Institute | File Format | |
|---|---|---|---|
| Date Published | February 2006 | Downloads | 2 |
| Format | White Papers | ||
| Topics |
|
||



