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:

    The philosopher believes that the value of his philosophy lies in its totality, in its structure: posterity discovers it in the stones with which he built and with which other structures are subsequently built that are frequently better—and so, in the fact that that structure can be demolished and yet still possess value as material.
    Friedrich Nietzsche (1844–1900)

    ... the structure of our public morality crashed to earth. Above its grave a tombstone read, “Be tolerant—even of evil.” Logically the next step would be to say to our commonwealth’s criminals, “I disagree that it’s all right to rob and murder, but naturally I respect your opinion.” Tolerance is only complacence when it makes no distinction between right and wrong.
    Sarah Patton Boyle, U.S. civil rights activist and author. The Desegregated Heart, part 2, ch. 2 (1962)

    Just as a new scientific discovery manifests something that was already latent in the order of nature, and at the same time is logically related to the total structure of the existing science, so the new poem manifests something that was already latent in the order of words.
    Northrop Frye (b. 1912)