INTNX Function in SAS –to Calculate The Last Day of The Last Month

SAS has a really interesting function known as INTNX. You can use this function to control the dates and get desired value by passing proper arguments in the INTNX function. SAS INTNX Function: The INTNX function increments a date, time, or datetime value by intervals such as DAY, WEEK, QTR, and MINUTE, or a custom … Read more

SAS: How to Calculate Age from Date Of Birth in SAS

In SAS, dates are stored in numeric and days are calculated by considering the default cut off date which is January 01, 1960 and the date specified. When you’re dealing with SAS dates and calculating time or days, the cut off date is very important. To calculate age you need two values, the first is … Read more

INTCK Function: DISCRETE and CONTINUOUS Methods in SAS

The INTCK function in SAS returns the number of interval boundaries that lie between two SAS dates, times, or timestamp values. It’s a super powerful function in SAS which is being used widely when calculating date intervals between two dates. Syntax of INTCK function: INTCK(interval , start-date-time, end-date-time, <'method'>) INTCK(interval , start-date-time, end-date-time, <‘method’>) method: … Read more

DROP v/s DELETE in SAS

The basic SQL concept is still the same in SAS. The DELETE statement deletes only the rows (data) in a table. The DROP TABLE statement removes the table from the database completely, including the table structure. DELETE Statement in SAS This is the most commonly used statement to remove a few, specific groups of observations, … Read more