SAS Functions SAS How To's

### How to Easily Calculate the Square Root in SAS [Examples]

In this article, we show 2 methods of how to calculate the square root of a number (or macro variable).

Skip to content
# Category: SAS Functions

Examples, Tips & Tricks

SAS Functions SAS How To's
### How to Easily Calculate the Square Root in SAS [Examples]

In this article, we show 2 methods of how to calculate the square root of a number (or macro variable).

SAS Functions SAS How To's
### How to Count the Number of Specific Characters in a SAS String

In this article, we discuss how to count the number of specific characters in a SAS string.

SAS Functions SAS How To's
### How to Convert a Datetime to a SAS Date Format

You convert a SAS Datetime to a SAS Date variable with the DATEPART function. This function extracts the date from…

SAS Functions SAS How To's
### How to Find the Length of a Variable in SAS

In this article, we discuss how to find and change the length of a variable.

SAS Functions SAS How To's
### How to Avoid Division by Zero in SAS

In this article, we discuss how to avoid division by zero in SAS. We show two methods, with example code,…