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.


INTCK function

From sasCommunity
Jump to: navigation, search

The INTCK function counts the whole number of interval boundaries between two dates, two times, or two datetime values.

Syntax

INTCK(period, startdateortime, enddateortime, <method>)
where:
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.


See also

Further reading

SAS Support links