BookmarkSubscribeRSS Feed
prislo
Fluorite | Level 6

Hi Everyone!!

 

I'm trying to assign a network driver (I: ) as a libname sas.

So I mapped a new network driver on server SAS with user and pass required but different user and pass from my user sas.

 

My Code: 

 

libname out '\\f-imouthes\shared\CLIENTES\CLIENTES\CRM_II\';

 

i'm receiving the follow error message: 

       ERROR: User does not have appropriate authorization level for library OUT.

 

My doubt is: This error happens cause my user sas is different from user of network driver or something else?

 

how to correct way to put authentication data in libname statement, cause when i try i received an error:

       ERROR 22-7: Invalid option name USER.

3 REPLIES 3
ChrisNZ
Tourmaline | Level 20

1. You probably mean network drive, not driver. 

2. As far as I know, the only way to authenticate when using a UNC share (what you call network drive) is by using the net use command. Please try that to ascertain your UNC credentials. 

You can see the credentials used by the SAS session by running the statement  %put &=sysuserid;

 

prislo
Fluorite | Level 6

Hi 

 

 

 

that way it was possible to use the folders I wanted!

 

The problem to do this is that when i schedule my sas code, the default server doesn't is the Local Sas Server.

 

Do you know any way to choose the server during execution of my code?

 

 

Thanks!!

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 2299 views
  • 0 likes
  • 2 in conversation