Chapter Summary

Text Summary

Review of Column Input

When data is arranged in columns or fixed fields, you can use column input to read them. With column input, the beginning and ending column are specified for each field. Character variables are identified by a dollar ($) sign.
Column input has several features.
  • Fields can be read in any order.
  • It can be used to read character variables that contain embedded blanks.
  • No placeholder is required for missing data. A blank field is read as missing and does not cause other fields to be read incorrectly.
  • Fields or parts of fields can be re-read.
  • Fields do not have to be separated by blanks or other delimiters
  • It can be used to read standard character and numeric data.

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.