BookmarkSubscribeRSS Feed
jflo36
Calcite | Level 5

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

1 REPLY 1
ballardw
Super User

Missing a ; after Alert_ID

SAS Innovate 2025: Call for Content

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!

Submit your idea!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 770 views
  • 0 likes
  • 2 in conversation