As the first step in the decommissioning of sasCommunity.org the site has been converted to read-only mode.
Here are some tips for How to share your SAS knowledge with your professional network.
The INTCK function counts the whole number of interval boundaries between two dates, two times, or two datetime values.
INTCK(period, startdateortime, enddateortime, <method>)
- period is a character variable, or constant, that describes the basic period and its start point offset.
- startdateortime is a date, time or datetime variable, (or constant), that is used as the starting point to calculate the number of periods.
- enddateortime is a date, time or datetime variable, (or constant), that is used as the finishing point to calculate the number of periods.
- <method> is an optional character constant, enclosed in quotatiom marks, that specifies if counting is "CONTINUOUS" or "DISCRETE". If omitted the "DISCRETE" method is used.
- Tips:Calculating Ages
- Your Age In People Years: Not All Formulas Are the Same
- A Walk through Time: Growing Your SAS Career
- Solutions in the Round -- INTX, INTNX, and INTCK
- Basic SAS Functions in Version 8.2