Skip to Main Content
Hands-On SAS for Data Analysis
book

Hands-On SAS for Data Analysis

by Harish Gulati
September 2019
Beginner to intermediate content levelBeginner to intermediate
346 pages
7h 35m
English
Packt Publishing
Content preview from Hands-On SAS for Data Analysis

INTNX and INTCK

The most useful functions for calculating date values, datetime values, and time intervals are INTNX and INTCK. These functions help in interval calculations. In common coding parlance, you can refer to INTNX as an interval check and INTCK as an interval next function. What this means is that INTNX checks for intervals whereas INTCK is useful for computing a date/datetime value on the basis of a different date/datetime value. Apart from this difference, there is a minor difference in the syntax. The INTNX function has four arguments, whereas the INTCK function has three arguments. The first two arguments are the same for both functions:

  • interval: A character constant or variable that contains an interval name
  • from: An SAS ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Big Data Analytics with SAS

Big Data Analytics with SAS

David Pope, Subhashini S Tripathi
An Introduction to SAS Visual Analytics

An Introduction to SAS Visual Analytics

Tricia Aanderud, Rob Collum, Ryan Kumpfmiller

Publisher Resources

ISBN: 9781788839822Supplemental Content