Specify the input file. Specify the input file is a delimited file. Replace the data set if it
exists. Identify the output SAS data set.
proc import datafile=stdata
dbms=dlm
out=states
replace;
run;
Specify delimiter as a blank.
delimiter=' ';
Generate variable names from first row of data.
getnames=yes;
Print out the data set.
proc print data=states;
run;
Log Examples
The SAS log displays information about the successful import. For this example, the
IMPORT procedure generates a SAS DATA step, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.