SAS Loops Explained
Base Sas

SAS Loops Explained

Loops allow you to execute SAS statements repeatedly thereby reducing the number of code lines.
The flow in loops can be classified as entry controlled or exit controlled. If the programming compiler checks for all conditions associated with the beginning of the loops executions are validated and true, then it is called as Entry controlled loops.

Read More
SAS date formats: How to display dates correctly?
Base Sas

SAS date formats: How to display dates correctly?

SAS date and time are one of the important topics in SAS due to the fact that SAS date and time have unique characteristics. SAS dates are not numeric not character variable, when displayed it resembles character but it is stored as a number. SAS date begins from January 1, 1960, and has a value of 0. Prior to this date are negative numbers and those after this date are positive numbers. SAS Formats are used to display values in various formats. There is a number of different SAS date formats which you can apply and make the dates readable.

Read More
The Mystery of Proc Sort Options
Base Sas

The Mystery of Proc Sort Options

Sorting the data is always a resource-intensive operation. Therefore, using PROC SORT efficiently can save you both time and computing resources.
There are a number of options associated with PROC SORT that can be used not only to control the performance and capabilities of the procedure but also to the resulting data set.

Read More
Using RETAIN in SAS to remember values
Base Sas

Using RETAIN in SAS to remember values

RETAIN in SAS is used to “remember” values from previous observations. Variables that do not come from SAS data sets are, by default, set to a missing value during each iteration of the DATA step.

Read More
Variable conversions in SAS
Base Sas

Variable conversions in SAS

Variable conversions in SAS refer as to convert numeric to character variables or character to numeric variables. PUT: Converts numeric to character. The result is a character string the format […]

Read More
Exploring the SET Statement in SAS
Base Sas

Exploring the SET Statement in SAS

A majority of DATA steps use the SET statement. The primary function of the SET statement in SAS is to read observation from one or more SAS datasets. Properly using […]

Read More