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;
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).
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.
@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;
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.
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.