Yearcutoff System Option

The Yearcutoff System Option in SAS

The YEARCUTOFF= option lets you specify what century SAS should assign to dates when two-digit years are used. The default year cutoff is 1926. However, you can set the yearcutoff …

Read more

specify list of variables in sas

How To Specify List Of Variables In SAS?

In SAS, you can quickly specify a list of variables in SAS statements like KEEP and DROP statements, the ARRAY statement, and the OF operator for comma-separated arguments to some functions. You can also …

Read more

Default Sorting Order of Characters in SAS

Default Sorting Order of Characters in SAS

Sorting Orders for Numeric Variables Numeric variables are sorted from the smallest-to-largest comparison and the sequence is as below. SAS System missing values (shown as a period or special missing …

Read more

How to save a log file in SAS?

There are several ways to save a log file in SAS. However, the most straightforward way is to use the PROC PRINTTO Procedure.  PROC PRINTTO procedure redirects log output and procedure output …

Read more

Scan function sas

How to use the SAS SCAN Function?

SCAN and SCANQ split strings into words. Both functions are similar. However, the SCANQ function has some additional features, and there is a difference in the default delimiter used in these two functions.

sas index function

SAS Index Function : Definitive Guide

The INDEX function is used to search for a specified string of characters. If any match is found, INDEX function returns 0 or the position of the first occurrence of the string’s first character.

SAS Length Function


SAS Length Function: LENGTH is a character function in SAS  used to find the length of the character string. There are 4 variations available in SAS to find the length of a string. These are the LENGTH, LENGTHN, LENGTHC and LENGTHM. The primary objective of all the length function is to return the length of the string however there are few variations in how these functions work and return the length.