Solved

assigning libname in SAS Enterprise

Posted on 2014-02-27
7
460 Views
Last Modified: 2016-02-10
Experts,

I am new to SAS Enterprise but not new to SAS.  In the past I have been able to assign a directory using LIBNAME.

SAS Enterprise keeps telling me the directory is not found.  SAS can find the directory when I use the import/export functions within Enterprise but will not let me assign a directory with my SAS Code.

Does anyone know how I can assign a directory in SAS Enterprise?
0
Comment
Question by:morinia
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 14

Expert Comment

by:Aloysius Low
ID: 39891940
where is the SAS execution environment? is it your local SAS or a server somewhere else?

if it's the former, it should work like how you have been assigning libnames all the while, but if it's the latter, which i suspect so, the path should be somewhere on the server, not your local...
0
 

Author Comment

by:morinia
ID: 39892019
The SAS execution environment is somewhere else.  I am using SAS Enterprise.  Does this mean that I cannot assign a libname to my  C drive?

I am trying to create a file that needs to be saved and read back again each run.
0
 
LVL 14

Expert Comment

by:Aloysius Low
ID: 39893654
If the execution environment somewhere else the path specified can't be one that is on your local machine.. try saving the file onto that machine n reference from there
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:morinia
ID: 39893665
I will try that.  Currently I am waiting to find out the exact path to my machine which is inclusive of the server.  This is supposed to be the fix.  I will let all know the outcome.
0
 
LVL 14

Expert Comment

by:Aloysius Low
ID: 39893669
One way if there isn't any security limitation is to define a network share to your machine and specify a network path in ur code.. But beware this will cause your code to run slower due to data transfer between your machine and the execution server
0
 

Author Comment

by:morinia
ID: 39905228
I've requested that this question be deleted for the following reason:

According to our SAS support Group, We are unable to assign  a libname to any folder that is not mounted in SAS Enteprise.  

0
 
LVL 14

Accepted Solution

by:
Aloysius Low earned 500 total points
ID: 39905230
what does "unable to assign  a libname to any folder that is not mounted in SAS Enteprise" means exactly?

if it means that the folder needs to be present (i.e. appear as a drive - mounted?) on the execution environment, it's exactly what i have said in comment #a39891940 and further iterated in comment #a39893654

i have also gave an possible workaround using UNC path in comment #a39893669 which is subject to security / network rights and may or may not be workable
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
database connection error mysql stops 7 78
mysql vs miscrosoft sql server 6 53
SQL SERVER 2008 R2 Problem copying database 10 64
SharePoint 2013 Search not working 9 61
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question