Archive Tag: function

The Two Faces of the substr Function in SAS

The substr function is a SAS character function which can be used on both side of the equation to select a subset of a string. Here are some examples.

READ MORE
4 Functions to Concatenate Strings Using SAS

The concatenation is about putting pieces of text one after the other in a variable using in SAS double ||, double !! or ‘cat’ functions.

READ MORE
5 SAS Functions to Remove Blanks

You will discover 5 functions to remove blanks from a character variable in SAS languages going from strip, cats, compress,… to regular expressions.

READ MORE
3 Ways to Create a SAS Date / Time

The SAS language uses it’s own time scale. What are SAS date, time and datetime? We will see three options to convert or create these values.

READ MORE
Going from Character to Numeric and Reversly

SAS datasets contain both character and numeric variables. How to create a character variable using a numeric variable and reversely?

READ MORE