A Word About Creating a Single Observation

Information for one observation can be spread out over several raw data file records. You can write multiple INPUT statements when multiple input records comprise a single observation, as shown below.
input Lname $ 1-8 Fname $ 10-15; 
input Department $ 1-12 JobCode $ 15-18; 
input Salary comma10.;
Figure 20.1 Multiple Records Comprising Each Observation
Raw data file showing each observation spread out over several records.
Last updated: January 10, 2018

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.