Inputting Data Using the DATALINES Statement

Now that you know how to enter your data, you are ready to learn about the SAS statements that actually allow the computer to read the data and put them into a SAS dataset. There are several ways that you can input data, but this book focuses on two: use of the DATALINES statement that allows you to include the data within the SAS program itself; and the INFILE statement that allows you to include the data lines within an external file.

There are also several ways in which data can be read by SAS with regard to the instructions you provide concerning the location and format of your variables. Although SAS allows for list input, column input and formatted input, this text presents only formatted input ...

Get A Step-by-Step Approach to Using SAS® for Univariate & Multivariate Statistics, Second 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.