Learning SAS? Welcome to the exclusive online community for all SAS learners.

How can I assign a folder in my computer to a SAS library?

Accepted Solution Solved
Reply
Occasional Learner
Posts: 1
Accepted Solution

How can I assign a folder in my computer to a SAS library?

I'm using SAS Univ. edition SAS studio on my Mac.

Commands like 'libname kim '~\dropbox\mywork' ' does not work in this version of SAS.

How can I use a folder in my computer as a SAS library?


Accepted Solutions
Solution
‎06-03-2014 02:25 PM
SAS Employee
Posts: 35

Re: How can I assign a folder in my computer to a SAS library?


All Replies
Super User
Posts: 11,343

Re: How can I assign a folder in my computer to a SAS library?

I don't use Mac but generally a fully qualified path works best. Using a relative path, starting with ~ is likely to mean it is looking subordinate to the executeable for SAS but there are options that can reassign that and then would be looking in the wrong place.

And my have inadvertently left off the ; for a program statement in your example.

Trusted Advisor
Posts: 3,215

Re: How can I assign a folder in my computer to a SAS library?

It is about virtualization. Just make a reference from that machine to you mac-folder.
Better to use the shortcut naming within those folders (rtfm). the forward slash / instead of the windows \ is another difference
kim.png

---->-- ja karman --<-----
N/A
Posts: 1

Re: How can I assign a folder in my computer to a SAS library?

Hey Jaap. I've been struggling with this a lot and noticed you used '~' as the directory instead of C:. It worked beautifully for me. This might be a silly question but why ~? How come C: doesn't work?

Solution
‎06-03-2014 02:25 PM
SAS Employee
Posts: 35

Re: How can I assign a folder in my computer to a SAS library?

Trusted Advisor
Posts: 3,215

Re: How can I assign a folder in my computer to a SAS library?

Fdsfddafdss, thatt is the Unix approach.a Mac is aldo based on that.

There are differences an similarities with Windows.

If you want to use an easy predefined location for "personal data" Windows is using 'my documents' pointing to a .... place, the same is achieved in Unix using the ~ or $HOME reference.

Advice get more aqaintant to Unix.

---->-- ja karman --<-----
🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 5 replies
  • 4438 views
  • 2 likes
  • 5 in conversation