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;


 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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
  • 3 replies
  • 959 views
  • 0 likes
  • 4 in conversation