Search the site...

SASCRUNCH TRAINING
  • Home
  • Member's Area
  • How to Start
  • SAS Interface
  • Creating a Data Set
  • Practical SAS Training Course
  • SAS Certified Specialist Training Program
  • Proc SQL Course
  • Introduction to Time Series Analysis
  • SAS Project Training Course
  • Full Training / Membership
  • Sign up
  • About us
  • Contact us
  • Home
  • Member's Area
  • How to Start
  • SAS Interface
  • Creating a Data Set
  • Practical SAS Training Course
  • SAS Certified Specialist Training Program
  • Proc SQL Course
  • Introduction to Time Series Analysis
  • SAS Project Training Course
  • Full Training / Membership
  • Sign up
  • About us
  • Contact us
Sentry Page Protection
Please Wait...
Proc Contents [1-3]
SAS Base Exam


Proc Contents
The CONTENTS procedure prints the descriptor portion of a data set.

Example

Copy and run the ORDER data set from the yellow box below.
Picture

The ORDER data set is a fairly simple data set. It contains the 3 variables:
  • OrderNo
  • Cost
  • Price


Data Portion

In SAS, each data set has two portions:
  1. Data Portion and
  2. Descriptor Portion

The data portion of a data set is the rectangular table that contains the variables, observations and the actual data points.
Picture

Descriptor Portion

The descriptor portion describes the details of a data set.

It contains information such as the number of variables and observations, member type, creation date, page size and so forth.

It can be viewed by running the CONTENTS procedure (i.e. Proc Contents).

Example

Proc Contents Data=Order;
Run;

The following tables are the descriptor portion of the data set:
Picture
[Expand the window for better viewing]

The tables show an overview of the data set.

The ORDER data set has 10 observations and 3 variables:
Picture
Picture

The data set page size is 65536 and the file size is 128KB:
Picture
Picture

It also shows you the list of variables included in the data set.
Picture
Picture

Exercise
Run the CONTENTS procedure on the CARS data set from the SASHelp library.

How many variables are there in the data set?
Next

Need some help?
Get Hint
Get Solution
Fill out my online form.

Home 
​
1 2 3 4 5 6 7
Summary | Final Test | Coding Exercises
Coding Project

Already a member? Go to member's area.