SAS PRINT Procedure

Q

What is the SAS PRINT Procedure?

✍: FYIcenter.com

A

PRINT Procedure prints the given data set into a nice looking table.

Here is a simple example of a PRINT Procedure:

DATA Sample;
  Weight = 0;
  DO Id = 1 to 6;
    Weight = RAND('UNIFORM', 60, 90);
    OUTPUT;
  END;

PROC PRINT DATA=Sample; /* "Sample" specifies the data set to use */

If you run the above SAS program, you will get the following table in the results:

Observation  Weight   Id
------------------------
          1  68.2987   1
          2  60.3991   2
          3  74.9203   3
          4  86.2947   4
          5  63.1514   5
          6  83.7675   6

 

SAS MEANS Procedure

SAS DATA Statement

SAS Language Basics

⇑⇑ SAS - Frequently Asked Questions

2021-06-19, 2099🔥, 0💬