How to check if string is numeric in SAS?

If you want to check if a string is numeric in SAS in a simple and fast way: you can use Verify Function, which returns the position of the first character in a string that is not in the search string.

How to Copy a file with SAS?

How to Copy a file with SAS?

Here is an example of a code that you can use to copies a file byte by byte. It copies the content byte-by-byte so it can be used to copy any file, even pictures! This will work on both Unix and Windows and it’s great for copying files from your SAS session to a place outside of SAS, or vice versa.

SAS Data Access Functions

SAS Data Access Functions

For the past few years, I’ve been learning SAS and have found that most of the functions I use are available in…

5 ways to exit from a SAS data step or a Program

There are a number of statements, options, functions, and programming alternatives that are well suited to controlling how and when all or a portion of a program can be stopped conditionally. Sometimes we want to control the flow of the individual data steps of the program. This may include the termination of a step or even the SAS job itself. There are several exit strategies depending on the objective.

How to Password protect SAS datasets ?

How to Password protect SAS datasets ?

Password Protecting SAS datasets means using access control on your data to prevent unintended access and secure your data. SAS has provided three levels of Access controls over the data and is implemented using passwords.

How to sort an array in SAS?

How to sort an array in SAS?

While working on arrays in SAS, we may need to sort the array in ascending or descending order. In this post, I will demonstrate different methods and techniques you can use to sort an array in SAS.

How to delete datasets in SAS?

How to delete datasets in SAS?

Deleting all data sets in a library is a very simple task. To delete all datasets in a library, specify the Work library in the PROC DATASET procedure statement, and specify the KILL option.