Chapter 5: Creating Formats from SAS Data Sets

Introduction

Task: Using a SAS data set to create a format (by creating a control data set)

Task: Adding new format values to an existing format

Conclusion

Introduction

The basic approach to creating a user-defined format or informat is to run PROC FORMAT and supply labels for each value or a range of values that you want to format. There are times when this becomes very tedious. If the information you need to create a format is already stored in a SAS data set, you can convert this data set into a control data set that can then be used to create your format. This chapter demonstrates how to create a control data set and how to add or modify values in an existing format.

Task: Using a SAS data ...

Get Cody's Collection of Popular SAS Programming Tasks and How to Tackle Them now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.