- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 11-18-2020 03:28 PM
(850 views)
I am trying to convert an XPT file to SAS
My code:
libname sasfile '/folders/myfolders/';
libname xptfile xport '/folders/myfolders/LLCP2018.XPT' access=readonly;
proc copy inlib=xptfile outlib=sasfile;
run;
Log:
1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
72
73 libname sasfile '/folders/myfolders/';
NOTE: Libref SASFILE was successfully assigned as follows:
Engine: V9
Physical Name: /folders/myfolders
74 libname xptfile xport '/folders/myfolders/LLCP2018.XPT' access=readonly;
NOTE: Libref XPTFILE was successfully assigned as follows:
Engine: XPORT
Physical Name: /folders/myfolders/LLCP2018.XPT
75 proc copy inlib=xptfile outlib=sasfile;
76 run;
NOTE: Input library XPTFILE is sequential.
ERROR: Physical file does not exist, /folders/myfolders/LLCP2018.XPT.
NOTE: Statements not processed because of errors noted above.
NOTE: PROCEDURE COPY used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
NOTE: The SAS System stopped processing this step because of errors.
77
78 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
90
What am I doing wrong?
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
SAS UE can be case sensitive. I would go to the Files, Folders and Servers Pane, find the XPT file, right click, select properties and use the path there in your code.