How to use the SAS SCAN Function?

sas scan

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 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.

Column Input in SAS

column input sas

The column Input in SAS is one of the methods to read raw data files that have spaces or other delimiters between all the values or periods for missing numeric data.Advantages of Column input in SASColumn input has the following advantages over list input: Spaces are not required between valuesMissing values can be left blankCharacter …

Read moreColumn Input in SAS

SAS Generation Datasets

sas generation datasets

What are SAS Generation Datasets?SAS generation datasets are historical copies of a SAS data set. You can request SAS to keep multiple copies of a SAS data set by using the generations feature.Generation datasets are useful for backup and recovery a specific data set, comparing two or more data sets for audit purposes.Read the paper …

Read moreSAS Generation Datasets

Length and Precision of SAS Variables

Length and Precision of SAS Variables

SAS programmers often use the Length statement frequently. Understanding the concepts of Length and Precision of SAS variables helps you to efficiently use disk space. When you specify the length of SAS variables.SAS stores the value of all numeric variables in floating-point representation. Numeric Variables The default length of numeric variables in SAS data sets …

Read moreLength and Precision of SAS Variables