{
  "name": "INTCK results for documented date pairs, discrete and continuous methods",
  "description": "Worked INTCK results compiled from the SAS 9.3 Functions Reference, the SAS 9.4 FedSQL Language Reference and the SAS/ETS date-interval chapter, listing interval, start, end, method and the returned count so results can be reproduced in a SAS session.",
  "page": "https://casrai.org/guides/sas-intck-function",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-17T23:39:55Z",
  "temporalCoverage": null,
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Example",
      "unit": "",
      "description": ""
    },
    {
      "name": "Interval",
      "unit": "",
      "description": ""
    },
    {
      "name": "Start date",
      "unit": "",
      "description": ""
    },
    {
      "name": "End date",
      "unit": "",
      "description": ""
    },
    {
      "name": "Method",
      "unit": "",
      "description": ""
    },
    {
      "name": "Result",
      "unit": "intervals",
      "description": ""
    }
  ],
  "rows": [
    {
      "Example": "Same month, discrete",
      "Interval": "MONTH",
      "Start date": "01JAN1991",
      "End date": "31JAN1991",
      "Method": "discrete",
      "Result": 0
    },
    {
      "Example": "Month boundary across month end, discrete",
      "Interval": "MONTH",
      "Start date": "31JAN1991",
      "End date": "01FEB1991",
      "Method": "discrete",
      "Result": 1
    },
    {
      "Example": "Reversed order, discrete",
      "Interval": "MONTH",
      "Start date": "01FEB1991",
      "End date": "31JAN1991",
      "Method": "discrete",
      "Result": -1
    },
    {
      "Example": "Quarter, discrete",
      "Interval": "QTR",
      "Start date": "10JAN1995",
      "End date": "01JUL1995",
      "Method": "discrete",
      "Result": 2
    },
    {
      "Example": "Year boundary one day apart, discrete",
      "Interval": "YEAR",
      "Start date": "31DEC1994",
      "End date": "01JAN1995",
      "Method": "discrete",
      "Result": 1
    },
    {
      "Example": "Almost a full year, discrete",
      "Interval": "YEAR",
      "Start date": "01JAN1994",
      "End date": "31DEC1994",
      "Method": "discrete",
      "Result": 0
    },
    {
      "Example": "Semiyear, discrete",
      "Interval": "SEMIYEAR",
      "Start date": "01JAN1995",
      "End date": "01JAN1998",
      "Method": "discrete",
      "Result": 6
    },
    {
      "Example": "Anniversary years, continuous",
      "Interval": "YEAR",
      "Start date": "14FEB2000",
      "End date": "17NOV2010",
      "Method": "continuous",
      "Result": 10
    },
    {
      "Example": "Elapsed month, continuous",
      "Interval": "MONTH",
      "Start date": "15JAN2000",
      "End date": "15FEB2000",
      "Method": "continuous",
      "Result": 1
    }
  ],
  "sources": [
    {
      "title": "SAS 9.3 Functions Reference: INTCK",
      "url": "https://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/p1md4mx2crzfaqn14va8kt7qvfhr.htm",
      "accessed": "2026-11-17"
    },
    {
      "title": "SAS 9.4 FedSQL Language Reference: INTCK",
      "url": "https://support.sas.com/documentation/cdl/en/fedsqlref/69925/HTML/default/n096g3nwx05g7wn161ax2rdqmlfn.htm",
      "accessed": "2026-11-17"
    },
    {
      "title": "SAS/ETS date intervals: INTCK",
      "url": "https://www.sfu.ca/sasdoc/sashtml/ets/chap2/sect41.htm",
      "accessed": "2026-11-17"
    }
  ]
}