How to Use CNTLOUT= and CNTLIN=options In SAS PROC FORMAT?

Formats are used to display variable values or written as output in SAS using the PROC FORMAT statement. The CNTLOUT= and CNTLIN=(options) are often used with the PROC FORMAT procedure in SAS when dealing with the user-defined formats. PROC FORMAT Syntax PROC FORMAT options; VALUE format_name specifications; INVALUE informat_name specifications; PICTURE format_name specifications; RUN; PROC … Read more

SAS: Create Permanent Format (Export Catalogues)

The formats are used in the SAS (statistical analysis system) to determine how variable values to be displayed or written as output. There are plenty of built-in formats available in SAS such as date9., w10., comma10.2, MMDDYYw., etc. It is also allowed to create your own user-defined formats in SAS. You can set your own … Read more

User Defined Formats In SAS (PROC FORMAT Guide)

The formats in SAS are a very underrated feature among the SAS programmers. Especially when it comes to user defined formats. It has been seen that people happily use join or complex look-up logic but don’t want to create user defined formats. This is probably because not everyone is aware of the real power of … Read more

How to Create [Permanent] User Defined Formats in SAS

You have already learned how to create user defined formats in SAS using the proc format procedure. This article is an extended version of that comprehensive guide. In this article you’ll learn how to create user defined formats using the proc format procedure in the permanent SAS library. SAS formats created in the WORK library … Read more

How to Generate Your own QR Code in SAS

QA (Quick Response) codes are a popular type of two-dimensional representing information such as geographical coordinates, contact details, URL, text message, or even poem. QR Codes store up to 4,296 alphanumeric characters of arbitrary text. They are also known as hardlinks or physical world hyperlinks. QR codes can be read by any appropriate software such … Read more

How to Rename SAS Datasets (In #3 Simple Ways)

Changing the dataset names or creating backup of existing data sets are kind of basic tasks you do as a developer. It’s often used when you do investigation on finding data errors or making changes in the existing solutions. SAS has different ways to rename the variables and its labels but here in this article … Read more

How to Rename All Datasets in SAS? (Add Prefix/Suffix to dataset names)

In this article we have seen 3 different ways to rename a sas dataset but they aren’t efficient when it comes to bulk renaming SAS Data sets.  Here you’ll learn how you can rename all the SAS datasets from a library ones for all without creating multiple copies of datasets. It means without making data … Read more

PROC MEANS in SAS (The Ultimate Guide)

The PROC MEANS procedure summarises data in descriptive statistics for variables across all the observations as well as within the groups of observations.  You can compute statistics like calculating mean, standard deviation, minimum and maximum values, and many more statistical calculations. For example, PROC MEANS does the following: calculates descriptive statistics estimates quantiles, which includes … Read more