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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 896 views
  • 0 likes
  • 4 in conversation