Hi,
I try importing a dat file into sas, but I keep getting error.
This is my code:
DATA Device_check;
INFILE "\\sites\happy\Reporting\Other\Device Check Return Files 201510\one.top.out.20151015.dat";
INPUT phone_number 15. Source $ Product_ID $ Consumer_ID Alert_ID
RUN;
Error message:
WARNING: Limit set by ERRORS= option reached. Further errors of this type will not be printed.
RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+
NOTE: Invalid data errors for file
'"\\sites\happy\Reporting\Other\Device Check Return Files 201510\one.top.out.20151015.d";
201510\nuance.tcpa.out.20151015.dat"' occurred outside the printed range.
NOTE: Increase available buffer lines with the INFILE n= option.
phone_number=. Source="AM","12 Product_ID=Treat"," Consumer_ID=. Alert_ID=. RUN=. _ERROR_=1
Missing a ; after Alert_ID
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.