BookmarkSubscribeRSS Feed
vandhan
Fluorite | Level 6

Wondering that I am unable to covert XPT to SAS datasets using either copy or cimport procedure.

 

Log says file not found.

 

what could be the issue here. Is there any other way to do ?

 

libname abc xport 'C:Source\abc.xpt' access=readonly;
proc copy inlib=abc
outlib=work;run;


proc cimport data = data_out infile='C:Source\abc.xpt';
run;
quit;

3 REPLIES 3
RW9
Diamond | Level 26 RW9
Diamond | Level 26

There really isn't enough information to debug here.  If the log states file not found, then its likely the file isn't found.  Can you get to the file via the Explorer window in SAS (actually what SAS are you using, UE for instance is all on its own image).  Syntax seems fine.  Also, post the whole log snippet (as text in the post).

Kurt_Bremser
Super User

For posting SAS code, use the "little running man" icon. It preserves code formatting and suppresses interpretation of "smileys".

For the log, use the {i} icon. Also important so the horizontal positioning of messages is preserved.

 

The log of the whole code snippet will really help in interpreting what's going wrong.

ballardw
Super User

@vandhan wrote:

Wondering that I am unable to covert XPT to SAS datasets using either copy or cimport procedure.

 

Log says file not found.

 

what could be the issue here. Is there any other way to do ?

 

libname abc xport 'C:\Source\abc.xpt' access=readonly;
proc copy inlib=abc
outlib=work;run;


proc cimport data = data_out infile='C:\Source\abc.xpt';
run;
quit;


 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1532 views
  • 0 likes
  • 4 in conversation