SAS Language - Structure

Structure

The SAS language basically divides data processing and analysis into two kinds of steps.

  1. Data Steps - Which manipulate data input and creation or deletion of variables.
  1. Procedure Steps - Which manipulate analysis and output.The short form for each procedure step is Proc

Each line of code in SAS language ends with a ";"

Data Storage Hierarchy Data is stored in this hierarchy -

1) Libraries - Which contain datasets.

Libname Good "C:/Data/";

This creates a reference path to library named Good at storage location "C:/Data/";

2) Datasets -Which contain variables and observations. Observations are rows, and variables are column headers.

Datasets can be temporary (they close when you shut down the SAS Compiling software) or they can be stored to the Operating Disk File System.

data good.dataset1; (Output Dataset Name) set dataset2; (Input Dataset Name) run; (Command after each Data step)

This stores the temporary dataset named "Dataset2" into a permanent location "C:/Data/dataset1.sas7bdat ) because it uses the Reference to good as "C:/Data/"; in previous step.

Read more about this topic:  SAS Language

Famous quotes containing the word structure:

    A special feature of the structure of our book is the monstrous but perfectly organic part that eavesdropping plays in it.
    Vladimir Nabokov (1899–1977)

    Slumism is the pent-up anger of people living on the outside of affluence. Slumism is decay of structure and deterioration of the human spirit. Slumism is a virus which spreads through the body politic. As other “isms,” it breeds disorder and demagoguery and hate.
    Hubert H. Humphrey (1911–1978)

    Vashtar: So it’s finished. A structure to house one man and the greatest treasure of all time.
    Senta: And a structure that will last for all time.
    Vashtar: Only history will tell that.
    Senta: Sire, will he not be remembered?
    Vashtar: Yes, he’ll be remembered. The pyramid’ll keep his memory alive. In that he built better than he knew.
    William Faulkner (1897–1962)