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 10: Creating Formats and Labels

What Is a SAS Format and Why Is It Useful?

Using SAS Built-in Formats

More Examples to Demonstrate How to Write Formats

Describing the Difference between a FORMAT Statement in a Procedure and a FORMAT Statement in a DATA Step

Making Your Formats Permanent

Creating Variable Labels

Conclusion

Problems

What Is a SAS Format and Why Is It Useful?

It is a common practice to store information in a database using codes rather than actual values. For example, you might have a questionnaire where the responses are strongly disagree, disagree, neutral, agree, and strongly agree. It would be unusual to store the actual values in your database—rather, you would use coded values such as 1=strongly disagree, 2=disagree, ...

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