New to sas studio. I checked previous questions, and tried different ways, it did not work.
In addition, I also use Mac, so this may be why it is so tricky.
My code is
libname NH "Macintosh HD/Users/llt/NHANES/DATA";
libname XP xport "Macintosh HD/Users/llt/NHANES/TEMP/demo_c.xpt";
proc copy in=XP out=NH; run;
Mac OS X is a UNIX, and so all complete pathnames need to start with a forward slash, like
/Users/llt/NHANES/TEMP/demo_c.xpt
Also take care of exact spelling with regards to upper/lowercase.
If, in fact, you use SAS University Edition, you need to use the shared folder.
Please show the LOG that you get from running the code to help with diagnosing the issue. In this case I think you might want to be sure to include the Libname statement as well as the Proc Copy. Copy the text from the Log and paste into a code box opened on the forum using either the </> or "running man" icon to preserve text formatting. The message windows on the forum will reformat text and may move such things as characters that SAS shows in the log to indicate where an error occurred.
Mac OS X is a UNIX, and so all complete pathnames need to start with a forward slash, like
/Users/llt/NHANES/TEMP/demo_c.xpt
Also take care of exact spelling with regards to upper/lowercase.
If, in fact, you use SAS University Edition, you need to use the shared folder.
Using the XPORT engine has these limitations: The XPORT engine supports only members of type DATA. It does not support members of type CATALOG orVIEW. The XPORT engine supports a feature set that is compatible with SAS 6. The XPORT engine cannot support SAS 9 features, such as long variable names. Warning or error messages report limitations that are encountered during the transport operation. For details about typical error messages and recovery actions, see File library.member.DATA has too long a member name for the XPORT engine . The XPORT engine with PROC COPY does not support the transport of any type of view or MDDB.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.