PROC APPEND In SAS (With Examples)

The PROC APPEND procedure can be used to append observations from one dataset to the end of another SAS dataset. It kind of stacks the datasets one after another. The APPEND procedure functions the same as the APPEND statement in the PROC DATASETS procedure. The only difference between the APPEND procedure and the APPEND statement … Read more

5 Ways To Combining and Appending SAS Datasets

There are multiple methods that can be used to combine or append two or more datasets in SAS. In this article you’ll learn 5 simple ways to combine and append SAS datasets as follows. Appending Or Concatenating Two Datasets Vertically – Stacking The Datasets Appending Or Concatenating Stacked Sorted Data Values PROC APPEND To Concatenate … Read more

How To Check SAS LOCALE Language Code (Handle Multilingual SAS Data)

There might be scenarios where you’re dealing with data from multiple languages. If you are working with a multinational client but their entire system uses the English language then you don’t need to worry about SAS Env LOCAL language.  But if you have data sources coming from different countries and data prepared in their own … Read more

How To Change Encoding (WLATIN1 to UTF-8) In SAS

SAS reads and writes external files using the current session encoding. SAS assumes that the external file has the same encoding as the session encoding. But sometimes you get some weird characters because of the encoding mismatch of the systems.  UTF-8 is part of the Unicode coded character set. UTF-8 is the preferred and most-used … Read more

PROC DATASETS In SAS [ #7 Use Cases With Examples]

The PROC DATASETS procedure is used to manage SAS datasets. With this procedure, you can list, change, append, and repair datasets and create and maintain indexes. The DATASETS procedure is a utility procedure that manages your SAS datasets. With PROC DATASETS, you can do the following: copy SAS datasets from one SAS library to another … Read more

How To Print All The Datasets From A SAS Library

The PROC PRINT procedure is usually used to view dataset observations in SAS. You need to specify the dataset name with data=option in the proc print procedure. Here is a simple example of how to print a dataset in SAS.  Basic Syntax: proc print data=data-set-name;run; Here is the sample example to print sashelp.class dataset. /* … Read more

CALL EXECUTE In SAS (With 10+ Examples)

The SAS macro language is an extremely flexible tool which facilitates SAS programmers with the ability to re-run the same code for a set of different parameters. It can be done using DO-LOOP by passing required parameters but alternatively you could also use the CALL EXECUTE routine which is more robust and efficient.  Call Execute … Read more

PROC PRINT In SAS (With 10+ Examples)

You can use the PROC PRINT procedure to print observations in a SAS data set using some or all of the variables. It’s one of the oldest yet relevant SAS procedures which is being used widely. With the new more advanced procedure like PROC REPORT, ODS system, PROC PRINT kind of left behind in the … Read more

PROC REPORT In SAS (With 15+ Examples)

PROC REPORT statement combines features of the PROC PRINT, PROC MEANS, and PROC TABULATE procedures with features of the DATA step in a single report-writing tool that can produce a variety of reports. You can use PROC REPORT procedure to create a report with the SAS dataset and in the formats you would like to … Read more

PROC TABULATE In SAS (With 15+ Examples)

The TABULATE procedure displays descriptive statistics in tabular format, using some or all of the variables in a data set. You can create a variety of tables ranging from simple to highly customised. The PROC FREQ, PROC MEANS, and PROC REPORT generates the statistical results but with the restricted output datasets. PROC TABULATE produces high … Read more