<?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 9.2: Execute Stored Process from another Stored Process in Developers</title>
    <link>https://communities.sas.com/t5/Developers/SAS-9-2-Execute-Stored-Process-from-another-Stored-Process/m-p/138149#M4041</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you want to achieve with calling a STP from another STP?&lt;/P&gt;&lt;P&gt;This is not a common use case for a STP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should the called STP return?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to encapsulate functionality one often uses macro programs to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A STP can be called as a web service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use Proc SOAP to call a web service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I guess there is a simpler way to do what you want&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jun 2014 20:45:45 GMT</pubDate>
    <dc:creator>BrunoMueller</dc:creator>
    <dc:date>2014-06-11T20:45:45Z</dc:date>
    <item>
      <title>SAS 9.2: Execute Stored Process from another Stored Process</title>
      <link>https://communities.sas.com/t5/Developers/SAS-9-2-Execute-Stored-Process-from-another-Stored-Process/m-p/138148#M4040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone help me how to run and Execute Stored Process from another Stored Process.&lt;/P&gt;&lt;P&gt;I would greatly appreciate any help...&lt;/P&gt;&lt;P&gt;I know that with SAS 9.3 we can use PROC STP but don't know how to do it with version SAS 9.2 and EG 4.3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 15:08:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-9-2-Execute-Stored-Process-from-another-Stored-Process/m-p/138148#M4040</guid>
      <dc:creator>pope1970</dc:creator>
      <dc:date>2014-06-11T15:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.2: Execute Stored Process from another Stored Process</title>
      <link>https://communities.sas.com/t5/Developers/SAS-9-2-Execute-Stored-Process-from-another-Stored-Process/m-p/138149#M4041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you want to achieve with calling a STP from another STP?&lt;/P&gt;&lt;P&gt;This is not a common use case for a STP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should the called STP return?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to encapsulate functionality one often uses macro programs to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A STP can be called as a web service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use Proc SOAP to call a web service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I guess there is a simpler way to do what you want&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 20:45:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-9-2-Execute-Stored-Process-from-another-Stored-Process/m-p/138149#M4041</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2014-06-11T20:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.2: Execute Stored Process from another Stored Process</title>
      <link>https://communities.sas.com/t5/Developers/SAS-9-2-Execute-Stored-Process-from-another-Stored-Process/m-p/138150#M4042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;BR /&gt; I agree with Bruno, usually, there isn't a lot of need to have a stored process call another stored process. Instead, you might have some SAS Macro programming conditional logic to call a macro program based on some condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; In our Stored Process 2 class (&lt;A href="https://support.sas.com/edu/schedules.html?ctry=us&amp;amp;id=1840" title="https://support.sas.com/edu/schedules.html?ctry=us&amp;amp;id=1840"&gt;SAS Training in the U.S. -- Creating Stored Processes Using SAS 2: Additional Topics&lt;/A&gt;), however, we do show an example of "chaining" stored processes for drill-down purposes. For example:&lt;/P&gt;&lt;P&gt;Stored Process 1 shows a list of customers and their customer ID, then, every customer's ID number is a hyperlink to Stored Process 2 that shows all the purchases made by that customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; For this example, the program behind Stored Process 1 has to build the appropriate URL to invoke Stored Process 2 when the person viewing the first output decides to click to drill-down to see the results of running Stored Process 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So it depends on whether you want your program to call various bits of code conditionally (use Macro Programs) or whether you want the end-user to be able to interact with the stored process results in order to perform the equivalent of a drill-down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 23:02:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-9-2-Execute-Stored-Process-from-another-Stored-Process/m-p/138150#M4042</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-06-11T23:02:58Z</dc:date>
    </item>
  </channel>
</rss>

