I have a data set with numeric data. The code is below:
data test;
infile 'C:\Users\Public\Documents\Test\test.dat';
input a1 a2 a3 a4 b1 b2 b3 b4;
run;
proc print data=test;
run;
When I run this I get the following error messages:
NOTE: Invalid data for a1 in line 1 1-51.
NOTE: Invalid data for a2 in line 2 1-50.
NOTE: Invalid data for a3 in line 3 1-50.
NOTE: Invalid data for a4 in line 4 1-50.
NOTE: Invalid data for b1 in line 5 1-51.
NOTE: Invalid data for b2 in line 6 1-51.
NOTE: Invalid data for b3 in line 7 1-51.
NOTE: Invalid data for b4 in line 8 1-51.
RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+-
8 CHAR 18.597.6.261.4.032.0.215.-0.099.32.580.36.430.1.038 51
ZONE 332333032333032333032333023233303323330332333032333
NUMR 18E59796E26194E03290E2159D0E099932E580936E43091E038
How do I fix this? Does this error message come up because the numbers have too many digits?
Added. Here are some sample lines from my data:
21.312 7.039 5.326 .932 -.030 35.239 36.991 1.057
21.206 6.979 5.237 .871 .015 35.713 36.851 1.064
Also here is another part of the error message:
NOTE: Invalid data errors for file ''C:\Users\Public\Test\test.dat'' occurred
outside the printed range.
NOTE: Increase available buffer lines with the INFILE n= option.