Hi,
if I run the code of my STP in EG the program runs without errors but embedded in a STP and via the
Stored Process Web Application I can the error "ERROR: The user does not have sufficient authority to access the data set files."
Why is that? The STP is set to run on the "Stored Process Server only". No specific user credentials are required. The data is not secret or specific for a particular user group. I also configured "allow execution on selected applications servers only" i.e, store source code in metadata. No result capabilities enabled (stream,package)
Code:
proc sql STIMER;
connect to oracle as oracleadb (user=ADBS password='{SAS002}xxxxxxx' path=ADBS);
create table SASxx.fact (COMPRESS=YES) as
(
select *
from connection to oracleadb
(
select x from y
) /*connection close*/
);
disconnect from oracleadb;
quit;
Bye
I guess you are the admin? If so, have a look at the configuration of stored process. By default, stored process user is "sassrv".
How is your library configured? Is it managed on Metadata server? If that's the case, open up your SMC, find the library and under authorisation tab add the stored process user (default:sassrv) to be authorised to use libname.
Regards,
Vasilij
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.