<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: getting error when I want to run a stored process in enterprise guide in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/getting-error-when-I-want-to-run-a-stored-process-in-enterprise/m-p/428724#M270032</link>
    <description>&lt;P&gt;I recently had an issue as the STP I was testing was writing to a pdf destination.&amp;nbsp; As per this stackoverflow &lt;A href="https://stackoverflow.com/questions/48116018/cache-access-method" target="_self"&gt;question&lt;/A&gt; (credit: DomPazz) I think there is now a solid answer to your conundrum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simply test to see if you are in an STP session, and if not, write to the cache!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%if  not (%symexist(_metaperson)) %then %do;

  /* not an STP so redirect _webout */
  filename _webout cache;

%end;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 18 Jan 2018 09:13:56 GMT</pubDate>
    <dc:creator>AllanBowe</dc:creator>
    <dc:date>2018-01-18T09:13:56Z</dc:date>
    <item>
      <title>getting error when I want to run a stored process in enterprise guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-error-when-I-want-to-run-a-stored-process-in-enterprise/m-p/290818#M270029</link>
      <description>&lt;P&gt;ERROR: Insufficient authorization to access /opt/sas94/sasconfig/Lev1/SASApp/_webout.dat.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would really be appriciated if someone helps me&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2016 20:29:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-error-when-I-want-to-run-a-stored-process-in-enterprise/m-p/290818#M270029</guid>
      <dc:creator>samira</dc:creator>
      <dc:date>2016-08-10T20:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: getting error when I want to run a stored process in enterprise guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-error-when-I-want-to-run-a-stored-process-in-enterprise/m-p/290825#M270030</link>
      <description>&lt;P&gt;It looks like your stored process web output destination is defaulting to a SAS installation configuration folder which typically read-only for most SAS users.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Often this destination is defined in a FILENAME statement like: filename _webout "Your webout folder";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try a FILENAME statement in EG pointing to a server-based folder you have write access to.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2016 21:07:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-error-when-I-want-to-run-a-stored-process-in-enterprise/m-p/290825#M270030</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-08-10T21:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: getting error when I want to run a stored process in enterprise guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-error-when-I-want-to-run-a-stored-process-in-enterprise/m-p/290904#M270031</link>
      <description>&lt;P&gt;_webout is a fileref that is automatically defined when a stored process is configured for stream output and run within a suitable context (usually via /SASStoredProcess from the web application server)&lt;/P&gt;
&lt;P&gt;If you want to assign it a suitable filename when run from SAS code, look here how it is done:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/stpug/62758/HTML/default/viewer.htm#p0q383asmm4bejn1i7z4q7iv5eke.htm" target="_blank"&gt;STP Procedure - Outputfile Statement&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: if you already declared that file reference, you missed the fact that you have to use an "absolute" pathname in UNIX.&lt;/P&gt;
&lt;P&gt;Absolute pathnames start from the root directory (therefore they start with a forward slash / ); names that do not start with a slash are considered relative to the current workling directory, which is in the SAS configuration tree for Workspace and Stored Process servers. You &lt;U&gt;must not&lt;/U&gt; have write permission there, which is the reason for your ERROR.&lt;/P&gt;
&lt;P&gt;If your stored process is run from the STP server, you must write your file to a location where the system's userid sassrv has write permission; if your STP is executed on a Workspace server, using $HOME/filename is sufficient, as the Workspace server runs under your own UID.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 07:57:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-error-when-I-want-to-run-a-stored-process-in-enterprise/m-p/290904#M270031</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-08-11T07:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: getting error when I want to run a stored process in enterprise guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-error-when-I-want-to-run-a-stored-process-in-enterprise/m-p/428724#M270032</link>
      <description>&lt;P&gt;I recently had an issue as the STP I was testing was writing to a pdf destination.&amp;nbsp; As per this stackoverflow &lt;A href="https://stackoverflow.com/questions/48116018/cache-access-method" target="_self"&gt;question&lt;/A&gt; (credit: DomPazz) I think there is now a solid answer to your conundrum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simply test to see if you are in an STP session, and if not, write to the cache!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%if  not (%symexist(_metaperson)) %then %do;

  /* not an STP so redirect _webout */
  filename _webout cache;

%end;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Jan 2018 09:13:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-error-when-I-want-to-run-a-stored-process-in-enterprise/m-p/428724#M270032</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2018-01-18T09:13:56Z</dc:date>
    </item>
  </channel>
</rss>

