Reading Nonstandard Data with List Input
The Basics of Modifying List Input
You can make list input more versatile
by using modified list input. There are two modifiers that can be
used with list input.
-
The ampersand (&) modifier is used to read character values that contain embedded blanks.
-
The colon (:) modifier is used to read nonstandard data values and character values that are longer than eight characters, but which contain no embedded blanks.
You can use modified
list input to read the file shown below. This file contains the names
of the 10 largest U.S. cities ranked in order based on their 2016
estimated population figures.
Notice that some of the values for city names contain embedded blanks and are followed by ...
Get SAS Certification Prep Guide, 4th Edition 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.