O'Reilly logo

Learning SAS by Example by Ron Cody

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Reading Raw Data from External Files

3.1

Introduction

30

3.2

Reading Data Values Separated by Blanks

30

3.3

Specifying Missing Values with List Input

32

3.4

Reading Data Values Separated by Commas (CSV Files)

33

3.5

Using an Alternative Method to Specify an External File

34

3.6

Reading Data Values Separated by Delimiters Other Than Blanks or Commas

34

3.7

Placing Data Lines Directly in Your Program (the DATALINES Statement)

36

3.8

Specifying INFILE Options with the DATALINES Statement

37

3.9

Reading Raw Data from Fixed Columns—Method 1: Column Input

37

3.10

Reading Raw Data from Fixed Columns—Method 2: Formatted Input

39

3.11

Using a FORMAT Statement in a DATA Step versus in a Procedure

43

3.12

Using Informats with List Input

43

3.13

Supplying an INFORMAT Statement with ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required