Chapter 10: Reading Data with User-Defined INFORMATS
Task: Reading a combination of character and numeric data
Introduction
Just about every SAS programmer can create and use formats. But not as many SAS programmers use PROC FORMAT to create their own informats. This is a very powerful feature of SAS. It is also quite easy to do—if you know how to write a format, you only need to learn a few things to be able to write an informat.
Task: Reading a combination of character and numeric data
Keywords
PROC FORMAT
Informat
Enhanced numeric informat
For this first task, you want to read peoples' oral temperatures. Instead of entering 98.6 (a normal body temperature), you want to enter an uppercase or lowercase 'n' (to save ...
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.