Skip to Main Content
Learning SAS by Example
book

Learning SAS by Example

by Ron Cody
July 2018
Beginner content levelBeginner
536 pages
12h 32m
English
SAS Institute
Content preview from Learning SAS by Example

Chapter 2: Writing Your First SAS Program

2.1  A Simple Program to Read Raw Data and Produce a Report

2.2  Enhancing the Program

2.3  More on Comment Statements

2.4  How SAS Works (a Look inside the “Black Box”)

2.5  Problems

 

2.1  A Simple Program to Read Raw Data and Produce a Report

Let’s start out with a simple program to read data from a text file and produce some basic summaries. Then we’ll go on to enhance the program.

The task: you have data values in a text file. These values represent Gender (M or F), Age, Height, and Weight. Each data value is separated from the next by one or more blanks. You want to produce two reports: one showing the frequencies for Gender (how many Ms and Fs); the other showing the average age, height, and ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning SAS by Example

Learning SAS by Example

EdD Ron Cody
SAS in Practice

SAS in Practice

Ekta Saraogi
SQL for Data Analysis

SQL for Data Analysis

Cathy Tanimura

Publisher Resources

ISBN: 9781635266566