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 2025: Call for Content

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!

Submit your idea!

SAS Enterprise Guide vs. SAS Studio

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.

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
  • 2898 views
  • 0 likes
  • 3 in conversation