Base SAS

9to5sas SAS tutorials allow you to extend your knowledge in SAS. Our step by step SAS tutorials are easy to understand and follows the best coding practices. Don’t waste your time buying books that cover just the basics. These SAS tutorials contain examples, tips, and hacks to learn SAS faster.

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

The SAS Index Function Explained

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

Length functions in SAS : LENGTH / LENGTHN / LENGTHC / LENGTHM.

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.

Receive the latest articles in your inbox

Insert your email signup form below

🤞 Don’t miss these tips!

We don’t spam! Read more about our privacy policy.