Skip to Main Content
An Introduction to SAS University Edition
book

An Introduction to SAS University Edition

by Ron Cody
February 2018
Beginner content levelBeginner
366 pages
7h 2m
English
SAS Institute
Content preview from An Introduction to SAS University Edition

Chapter 12: Performing Iterative Processing: Looping

Introduction

Demonstrating a DO Group

Describing a DO Loop

Using a DO Loop to Graph an Equation

DO Loops with Character Values

Leaving a Loop Based on Conditions (DO WHILE and DO UNTIL Statements)

DO WHILE

Combining an Iterative Loop with a WHILE Condition

Do UNTIL

Demonstrating That a DO UNTIL Loop Executes at Least Once

Combining an Iterative Loop with an UNTIL Condition

LEAVE and CONTINUE Statements

Conclusion

Problems

Introduction

Many programs use a process called looping. You can execute a series of statements a fixed number of times or you can set a condition that, when satisfied, will cause the iteration to start or stop and the rest of the program to continue. SAS iterative statements ...

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

Essential Statistics Using SAS University Edition

Essential Statistics Using SAS University Edition

Geoff Der, Brian S. Everitt
Elementary Statistics Using SAS

Elementary Statistics Using SAS

Sandra D. Schlotzhauer

Publisher Resources

ISBN: 9781629600079