I'm using Sas studio university edition. I have a dat file without any column headings (4 columns). I'm trying to read it in with
data van;
infile "/folders/myfolders/test2/psek-win.dat";
input a $ b $ c $ d $;
run;
i.e. create my own names for the columns. It works, but only the very first line is being read in. How can I get it to read all lines? I have been watching youtube tutorials but I'm stuck.
EDIT: Here is the output
1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
57
58 data van;
59 infile "/folders/myfolders/test2/psek-win.dat";
60 input a $ b $ c $ d $;
61 run;
NOTE: The infile "/folders/myfolders/test2/psek-win.dat" is:
Filename=/folders/myfolders/test2/psek-win.dat,
Owner Name=sasdemo,Group Name=sas,
Access Permission=-rw-rw-r--,
Last Modified=05Jun2015:06:55:44,
File Size (bytes)=1527
NOTE: 1 record was read from the infile "/folders/myfolders/test2/psek-win.dat".
The minimum record length was 1527.
The maximum record length was 1527.
NOTE: The data set WORK.VAN has 1 observations and 4 variables.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds
62
63 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
75
EDIT 2: I really should have included this info from the start...sorry: I'm using Windows 7, running Sas Studio through VirtualBox on Linux Redhat 64. I realized the file I was using was meant for Windows. When I use a Linux version of the same file it works fine.
Thanks