Reading Data That Requires Special Instructions
Understanding Formatted Input
Sometimes the INPUT statement requires special instructions
to read the data correctly. For example, SAS can read numeric data
that is in special formats such as binary, packed decimal, or date/time.
SAS can also read numeric values that contain special characters such
as commas and currency symbols. In these situations, use formatted
input. Formatted input combines the features of column input with
the ability to read nonstandard numeric or character values. The
following data shows formatted input:
-
1,262
-
$55.64
-
02JAN2013
Program: Reading Data That Requires Special Instructions
The data in this program includes numeric values that contain a comma, ...
Get Step-by-Step Programming with Base SAS 9.4 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.