How to Convert Character to Numeric Variable in SAS

In this article we’re going to deep dive into the most common question from SAS users. I’m sure you also have the same question on how to convert variable values from character to numeric in SAS. On multiple occasions you do need to perform the data value conversion especially when you’re reading data from different … Read more

How to Convert Numeric to Character Variable in SAS

In this article we’re going to deep dive into the most common question from SAS users. I’m sure you’re also wondering how to convert variable values from numeric to character in SAS. On multiple occasions you do need to perform the data value conversion especially when you’re reading data from different sources. The multiple sources … Read more

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