DATA Step, Macro, Functions and more

import error

Reply
Occasional Contributor
Posts: 10

import error

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

Super User
Posts: 11,343

Re: import error

Missing a ; after Alert_ID

Ask a Question
Discussion stats
  • 1 reply
  • 144 views
  • 0 likes
  • 2 in conversation