Review of Column Input

Overview

In Creating SAS Data Sets from External Files, you learned how to use column input to read raw data that is stored in an external file.
You can use column input to read the values for Item, IDnum, InStock, and BackOrd from the raw data file that is referenced by the fileref Invent.
input Item $ 1-13 IDnum $ 15-19 InStock 21-22 
      BackOrd 24-25;
Raw Data File Invent
Notice that the INPUT statement lists the variables with their corresponding column locations in order from left to right. However, one of the features of column input is the ability to read fields in any order.
For example, you could have read the values for InStock ...

Get SAS Certification Prep Guide: Base Programming for SAS 9, Third 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.