<?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: How to obtain returning file from a stored process when we call it from a SAS program in Developers</title>
    <link>https://communities.sas.com/t5/Developers/How-to-obtain-returning-file-from-a-stored-process-when-we-call/m-p/553829#M5882</link>
    <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Will something like this give you what you need?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename resp 'C:\temp\myoutput.pdf';

proc http url='http://server:port/SASStoredProcess/guest?_program=%2FProducts%2FSAS+Intelligence+Platform%2FSamples%2FSample%3A+Multiple+Output+Formats&amp;amp;dataset=SASHELP.CLASS&amp;amp;_odsdest=PDF&amp;amp;_odsstyle=HTMLBlue'
  out=resp;
run; quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Apr 2019 01:30:36 GMT</pubDate>
    <dc:creator>Vince_SAS</dc:creator>
    <dc:date>2019-04-25T01:30:36Z</dc:date>
    <item>
      <title>How to obtain returning file from a stored process when we call it from a SAS program</title>
      <link>https://communities.sas.com/t5/Developers/How-to-obtain-returning-file-from-a-stored-process-when-we-call/m-p/553086#M5881</link>
      <description>&lt;P&gt;Hi SAS Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This poster was written to ask&amp;nbsp;how to obtain result files that returned by a stored process when it was called from SAS code from another computer?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assume StoredProcess_A is a web service on a server, which will generate a result file (for example&amp;nbsp;a pdf file). When&amp;nbsp;the&amp;nbsp;STP&amp;nbsp;is called&amp;nbsp;from a webpage, it is quite easy to send the&amp;nbsp;result to frontend for downloading by redirect the file contents to _webout.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am not sure how to obtain the result file&amp;nbsp;when the stored process is called from SAS code, such as by using PROC HTTP in EG on another computer?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand that one way to achieve the feature is to save the output file on the server, and then to&amp;nbsp;download the&amp;nbsp;save file&amp;nbsp;from the client computer with the URL returned by the STP. However,&amp;nbsp;this strategy is&amp;nbsp;not&amp;nbsp;allowed&amp;nbsp;in my working environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder is there any direct way to obtain the result file from&amp;nbsp;the stored process when it was called from SAS code?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions or examples are much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regard,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Zach&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 22:48:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-obtain-returning-file-from-a-stored-process-when-we-call/m-p/553086#M5881</guid>
      <dc:creator>huz</dc:creator>
      <dc:date>2019-04-22T22:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain returning file from a stored process when we call it from a SAS program</title>
      <link>https://communities.sas.com/t5/Developers/How-to-obtain-returning-file-from-a-stored-process-when-we-call/m-p/553829#M5882</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Will something like this give you what you need?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename resp 'C:\temp\myoutput.pdf';

proc http url='http://server:port/SASStoredProcess/guest?_program=%2FProducts%2FSAS+Intelligence+Platform%2FSamples%2FSample%3A+Multiple+Output+Formats&amp;amp;dataset=SASHELP.CLASS&amp;amp;_odsdest=PDF&amp;amp;_odsstyle=HTMLBlue'
  out=resp;
run; quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 01:30:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-obtain-returning-file-from-a-stored-process-when-we-call/m-p/553829#M5882</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2019-04-25T01:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain returning file from a stored process when we call it from a SAS program</title>
      <link>https://communities.sas.com/t5/Developers/How-to-obtain-returning-file-from-a-stored-process-when-we-call/m-p/554306#M5883</link>
      <description>&lt;P&gt;Hi Vince,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;strategy did work. When we publish a stored process, there a few URLs along with it and&amp;nbsp;each of them have their different features as called. Eventual, I find the restful URL can be used to return results of any file types back to client at the background.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again for your kind help with the matters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Zach&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 14:57:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-obtain-returning-file-from-a-stored-process-when-we-call/m-p/554306#M5883</guid>
      <dc:creator>huz</dc:creator>
      <dc:date>2019-04-26T14:57:40Z</dc:date>
    </item>
  </channel>
</rss>

