Example 9.14 Incrementing a Date by an Interval
Increment a date by a specific interval such as days, weeks, months, or years. For each starting date, specify the number of times to increment the starting date and the interval to increment it by.
|Featured Step||DATA step|
|Featured Step Options and Statements||INTNX function|
|A Closer Look||Understanding SAS Date and Time Intervals Understanding the Processing of the INTNX Function in This Example|
Input Data Set
Data set SCHED_APPTS has a list of appointments for nine patients and information about scheduling new appointments for them. The values of variable APPTDATE are SAS date values, and they are formatted in the listing with the WORDDATE format. The other variables are described ...