<?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: SAS BI Web Services completed with nonzero SYSCC in Developers</title>
    <link>https://communities.sas.com/t5/Developers/SAS-BI-Web-Services-completed-with-nonzero-SYSCC/m-p/360661#M5398</link>
    <description>&lt;P&gt;Thanks, installing the hotfix resolved the problem.&lt;/P&gt;</description>
    <pubDate>Tue, 23 May 2017 09:27:07 GMT</pubDate>
    <dc:creator>Crysis85</dc:creator>
    <dc:date>2017-05-23T09:27:07Z</dc:date>
    <item>
      <title>SAS BI Web Services completed with nonzero SYSCC</title>
      <link>https://communities.sas.com/t5/Developers/SAS-BI-Web-Services-completed-with-nonzero-SYSCC/m-p/360490#M5393</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm starting to figure out how to leverage stored processes exposed as web services. I'm starting to test Stored Processes with a PROC HTTP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code for the SP is this&lt;/P&gt;&lt;PRE&gt;%global wsRC wsValue wsMsg returnString;

%let wsMsg = someDate=&amp;amp;someDate;

%macro runCode;
  proc sql noprint;&lt;BR /&gt;
    select
      &amp;amp;statName( &amp;amp;columnName )
    into
      :wsValue trimmed
    from
      &amp;amp;tableName
    ;
  quit;
  %if &amp;amp;sqlrc = 0 %then %do;
    %let wsrc=&amp;amp;sqlrc;
  %end;
  %else %do;
    %let wsrc=&amp;amp;sqlrc;
    %let wsMsg = ERROR: &amp;amp;syserrortext;
    %let wsValue = .;
    %let syscc = 0;
  %end;
%mend;

%runCode&lt;/PRE&gt;&lt;P&gt;The PROC HTTP that uses this Stored Process is this&lt;/P&gt;&lt;PRE&gt;%let hostName = 192.168.1.61;
%let port = 7980;
%let SASBIWS_path = /SASBIWS/rest/storedProcesses;
%let stpName = /SAS Validation/SAS Stored Procedures/stp_02_ws;

*
* build parm list for REST XML request
*;
filename htin temp;
data _null_;
  infile cards;
  input;
  file htin;
  put _infile_;
cards4;
&amp;lt;any&amp;gt;
&amp;lt;parameters&amp;gt;
&amp;lt;tableName&amp;gt;sashelp.cars&amp;lt;/tableName&amp;gt;
&amp;lt;columnName&amp;gt;invoice&amp;lt;/columnName&amp;gt;
&amp;lt;statName&amp;gt;MEAN&amp;lt;/statName&amp;gt;
&amp;lt;someDate&amp;gt;2016-01-17&amp;lt;/someDate&amp;gt;
&amp;lt;/parameters&amp;gt;
&amp;lt;/any&amp;gt;
;;;;


*
* call STP as REST WS
*;
filename htout "/home/lasradm/Test/rest_test";
proc http
  method="POST"
  URL="http://&amp;amp;hostName:&amp;amp;port.&amp;amp;SASBIWS_path.&amp;amp;stpName"
  in=htin
  out=htout
  ct="application/xml"
  WEBUSERNAME="lasradm"
  WEBPASSWORD="sas"
 	
  verbose
  ;
run;

*
* display result
*;
data _null_;
  infile htout;
  input;
  putlog _infile_;
run;

filename htin clear;
filename htout clear;&lt;/PRE&gt;&lt;P&gt;This works fine, on the log I can see the result embedded in XML code.&lt;/P&gt;&lt;P&gt;Now I tryed to write a similar program passing different parameters to the SP. Didn't work. I restrict the problem on the library. As long as I use SASHELP it works. If I use a library defined by me (with all the permissions) it gives this generic error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;HTTP Status 500 - Request processing failed; nested exception is com.
sas.web.services.WSException: SAS completed with nonzero SYSCC '1,012'.  SYSMSG: ''&lt;/PRE&gt;&lt;P&gt;Can't figure out where the problem lies.&lt;/P&gt;&lt;P&gt;I'm using SAS 9.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;edit: I found this code on this topic&amp;nbsp;&lt;A href="https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/td-p/295647" target="_blank"&gt;https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/td-p/295647&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 15:04:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-BI-Web-Services-completed-with-nonzero-SYSCC/m-p/360490#M5393</guid>
      <dc:creator>Crysis85</dc:creator>
      <dc:date>2017-05-24T15:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS BI Web Services completed with nonzero SYSCC</title>
      <link>https://communities.sas.com/t5/Developers/SAS-BI-Web-Services-completed-with-nonzero-SYSCC/m-p/360504#M5394</link>
      <description>&lt;P&gt;SASHELP is the same for all users under all circumstances. Another library may be defined in metadata, but if the user running the STP server has no access to the directory or if there is a metadata permission problem, that library will not work.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 18:11:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-BI-Web-Services-completed-with-nonzero-SYSCC/m-p/360504#M5394</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-05-22T18:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS BI Web Services completed with nonzero SYSCC</title>
      <link>https://communities.sas.com/t5/Developers/SAS-BI-Web-Services-completed-with-nonzero-SYSCC/m-p/360566#M5395</link>
      <description>I figured that, I gave all permissions to the folder that library is pointing to, I gave all permissions to the library itself in the management console. Still the same error, another suggestion on how can I solve this?</description>
      <pubDate>Mon, 22 May 2017 21:33:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-BI-Web-Services-completed-with-nonzero-SYSCC/m-p/360566#M5395</guid>
      <dc:creator>Crysis85</dc:creator>
      <dc:date>2017-05-22T21:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS BI Web Services completed with nonzero SYSCC</title>
      <link>https://communities.sas.com/t5/Developers/SAS-BI-Web-Services-completed-with-nonzero-SYSCC/m-p/360567#M5396</link>
      <description>&lt;P&gt;For which user did you set permissions on the physical directory? The OS user running the STP server (usually sassrv) needs the permissions, not the user with which you call the STP. That one needs mostly metadata permissions.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 21:53:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-BI-Web-Services-completed-with-nonzero-SYSCC/m-p/360567#M5396</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-05-22T21:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS BI Web Services completed with nonzero SYSCC</title>
      <link>https://communities.sas.com/t5/Developers/SAS-BI-Web-Services-completed-with-nonzero-SYSCC/m-p/360572#M5397</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error handling within the STP should return the proper error message. However it looks like you can not reset the SYSCC macro var.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a look here &lt;A href="http://support.sas.com/kb/56/197.html" target="_blank"&gt;http://support.sas.com/kb/56/197.html&lt;/A&gt; and check whether the necessary hotfix is applied.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 21:52:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-BI-Web-Services-completed-with-nonzero-SYSCC/m-p/360572#M5397</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2017-05-22T21:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS BI Web Services completed with nonzero SYSCC</title>
      <link>https://communities.sas.com/t5/Developers/SAS-BI-Web-Services-completed-with-nonzero-SYSCC/m-p/360661#M5398</link>
      <description>&lt;P&gt;Thanks, installing the hotfix resolved the problem.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 09:27:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-BI-Web-Services-completed-with-nonzero-SYSCC/m-p/360661#M5398</guid>
      <dc:creator>Crysis85</dc:creator>
      <dc:date>2017-05-23T09:27:07Z</dc:date>
    </item>
  </channel>
</rss>

