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 structure becomes architectural, and not sculptural, when its elements no longer have their justification in nature.
    Guillaume Apollinaire (1880–1918)

    The question is still asked of women: “How do you propose to answer the need for child care?” That is an obvious attempt to structure conflict in the old terms. The questions are rather: “If we as a human community want children, how does the total society propose to provide for them?”
    Jean Baker Miller (20th century)

    I’m a Sunday School teacher, and I’ve always known that the structure of law is founded on the Christian ethic that you shall love the Lord your God and your neighbor as yourself—a very high and perfect standard. We all know the fallibility of man, and the contentions in society, as described by Reinhold Niebuhr and many others, don’t permit us to achieve perfection.
    Jimmy Carter (James Earl Carter, Jr.)