BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
herbman
Obsidian | Level 7

Hello,

I would like to check a problem in triggering the next stored process:

When we run this stored process from the very beginning, it successfully active the following stored process 'upload' (activate the Test1file stored process) :

(upload stored process:)

data form;

file _webout;

put "HTML";

put "<Body>";

put "<H3> Please choose a file to upload</H3>;

put "<Form Action='&_URL'>";

put "<Input TYPE='Hidden'  Name='_program' value='Shared data/SAS Testing/ABC/Test1file'>";

put "<Input TYPE='Hidden' Name='submit' value='submited'>";

put "<table border='0' cellpadding='5'>";

put "<tr><td>";

put "<input Type='file' Name='attach1' />";

put "</td></tr>";

put "</table>";

put "</form>";

put "</body>";

put "</HTML>";

run;

When I insert a 'selection' store process (below) to trigger above upload stored process (the Data_resource macrovarible was successfully given value 1 from previous home stored process),  the log showed that it goes to the above test1file stored process), However, an error message showed:

ERROR: Insufficient authorization to access /sas/sas93/compute_config/Lev1/SASApp/_webout.dat

Appreciate if you can help to provide a solution to trigger the test1file, thank you!

(Selection stored process:)

%global Data_Resource _URL _Username;

%macro checking;

%if &data_resource=1 %then %do;

proc stp program ='shared data/SAS testing/ABC/Test1file';

run;

%end;

%if &data_resource=2 %then %do;

proc step program='shared data/SAS testing/ABC/Test2file';

run;

%end;

%mend checking;

%checking

1 ACCEPTED SOLUTION

Accepted Solutions
herbman
Obsidian | Level 7

Hi KurtBremser,

The Enterprise 5 did not show exact guidance in the list 17316. It did seem to be  the problem with STP. When replaced <Form Action='&URL'> with <Form action='Http://server/sasstoredprocess/do?_action=execute%_program=/path../Test1" method="post"> </Form>, it functions well now. Thank very much!

Limin

View solution in original post

2 REPLIES 2
Kurt_Bremser
Super User

ERROR: Insufficient authorization to access /sas/sas93/compute_config/Lev1/SASApp/_webout.dat

indicates that the STP tries to write to a file instead of the HTML output stream. Might be a problem with the STP definition.

This could help:

17316 - Enterprise Guide 4 forces Stored Process "Streaming" output to"Transient" output

herbman
Obsidian | Level 7

Hi KurtBremser,

The Enterprise 5 did not show exact guidance in the list 17316. It did seem to be  the problem with STP. When replaced <Form Action='&URL'> with <Form action='Http://server/sasstoredprocess/do?_action=execute%_program=/path../Test1" method="post"> </Form>, it functions well now. Thank very much!

Limin

sas-innovate-2024.png

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.

 

Register now!

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