BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
ZC
Calcite | Level 5 ZC
Calcite | Level 5

Hi,

I have run the following syntax to import XPT datafile:

libname d "D:\DXA\data";                              

libname dexa9900 xport "D:\DEXA\data\dxx9900.xpt";


proc copy in=dexa9900 out=d memtype=data;
run;

But below the errors have been showed in the LOG window. The dxx9900.xpt does physically exist in the pathway as in the syntax. The result, of course, is that the data can not be imported. why? Thanks,

NOTE: Input library DEXA9900 is sequential.
ERROR: Physical file does not exist, D:\DEXA\data\dxx9900.xpt.
NOTE: Statements not processed because of errors noted above.
NOTE: PROCEDURE COPY used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds

NOTE: The SAS System stopped processing this step because of errors.

1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

The error message is that SAS cannot see the file. If the file existed and was not in the V5 transport file format then you would have received a different error message.

Check the filename again. For example your other path is DXA instead of DEXA.

You can even use a SAS function FILEEXIST to check that the file actually is there.

Perhaps SAS is running on a different machine or under a different user than what you are using to check that the filename is correct?

View solution in original post

2 REPLIES 2
ballardw
Super User

Is this file a SAS Transport file? If so you probably need PROC CIMPORT.

Some thing like

filename dexa9900 "D:\DEXA\data\dxx9900.xpt";

proc cimport infile=dexa9900 library=d;run;

Tom
Super User Tom
Super User

The error message is that SAS cannot see the file. If the file existed and was not in the V5 transport file format then you would have received a different error message.

Check the filename again. For example your other path is DXA instead of DEXA.

You can even use a SAS function FILEEXIST to check that the file actually is there.

Perhaps SAS is running on a different machine or under a different user than what you are using to check that the filename is correct?

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 2714 views
  • 0 likes
  • 3 in conversation