Review

SAS Statement types

We've seen three categories of SAS statements --

Permanent SAS Dataset

There are two ways to reference a permanent SAS dataset.

Two-part name with a libname statement to define the libref:

  libname sasclass ".";
  data sasclass.lab3b;
    .
    .
    .
  run;

  proc print data=sasclass.lab3b

Quoted string containing the UNIX filename of the SAS dataset:

  data "lab3b.sas7bdat";
    .
    .
    .
  run;

  proc print data="lab3b.sas7bdat"

Both of these methods refer to a unix file containing the SAS data set named lab3b.sas7bdat.

strauss.udel.edu% ls -l lab3b.sas7bdat
-rw-------   1 traing   1691       16384 Jan 30 11:29 lab3b.sas7bdat
strauss.udel.edu% 
If you use the quoted-string method, be sure the file extension you use is sas7bdat. In both of these examples, the UNIX file resides in the current working directory.