SAS Studio

Write and run SAS programs in your web browser
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-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

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