SAS Program Running with SAS Server and Local

hi,
I am running a SAS Program. I have two sas dataset reading from SAS server and two from Local Computer.
when I run program and select server, i get an error msg "Local lib is not assigned",
may I know how to access both the libraries in a same program.
thanks
premkripalaniAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Aloysius LowCommented:
do you have the physical location on your hard disk where the 2 sas datasets are stored?

how are you running the program? is it a user written code or some out-of-box functions?
0
premkripalaniAuthor Commented:
do you have the physical location on your hard disk where the 2 sas datasets are stored?

YES, IT IS ON SHARE DRIVE.

how are you running the program? is it a user written code or some out-of-box functions?
ITS A USER WRITTEN CODE AS PER BELOW

data Head_of_school ;
set HOH.school;
if staff_id = staff_id_1 ;
if relationship_code = '0' ;
keep Staff_Id;;
run ;
0
Aloysius LowCommented:
since you are running as a sas code, you can do a libname assignment:
libname HOH "[physical path]";

before running your code.
0
Powerful Yet Easy-to-Use Network Monitoring

Identify excessive bandwidth utilization or unexpected application traffic with SolarWinds Bandwidth Analyzer Pack.

premkripalaniAuthor Commented:
I have done that. assign the physical path. but half the code has library on server so i have to select server to run program. while doing that it is not reading local computer filename.

0
Aloysius LowCommented:
I see what you are referring to.

I don't know of anything which allows you to do so. The solution I see is to split the code into 2 and process separately. However, it won't be straightforward and in between, some work-around might be required.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
premkripalaniAuthor Commented:
no problem, got it.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.