BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
knighsson
Obsidian | Level 7

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;

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

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.

View solution in original post

3 REPLIES 3
ballardw
Super User

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.

Kurt_Bremser
Super User

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.

ballardw
Super User

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. 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 4109 views
  • 0 likes
  • 3 in conversation