<?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: Creating a Data Target from a Stored Process in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Creating-a-Data-Target-from-a-Stored-Process/m-p/238823#M3841</link>
    <description>&lt;P&gt;Anybody want to walk through an example with this? I've tried for 20 hours and cannot send a stored process a file.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Dec 2015 02:12:23 GMT</pubDate>
    <dc:creator>TedP</dc:creator>
    <dc:date>2015-12-11T02:12:23Z</dc:date>
    <item>
      <title>Creating a Data Target from a Stored Process</title>
      <link>https://communities.sas.com/t5/Developers/Creating-a-Data-Target-from-a-Stored-Process/m-p/113100#M3838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS 9.3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Summary:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any examples of using the Data Targets option for a Stored Process?&amp;nbsp; I have no idea what it does, how to configure it, or whether I'd want to use it.&amp;nbsp; I'm creating the STP using EG, and calling the STP from AMO (Excel), so I have an input stream.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Details:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I looked here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/stpug/62758/PDF/default/stpug.pdf" title="http://support.sas.com/documentation/cdl/en/stpug/62758/PDF/default/stpug.pdf"&gt;http://support.sas.com/documentation/cdl/en/stpug/62758/PDF/default/stpug.pdf&lt;/A&gt; and searched on "target" (36 hits).&amp;nbsp; The only hit that came close was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;8 Click Next in the New Stored Process Wizard if you have data sources or data&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;targets to deﬁne. Otherwise, click Finish.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I propose that this text, &lt;STRONG&gt;in the main Stored Process documentation&lt;/STRONG&gt;, is a bit "sparse" and light on the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I looked here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings11/050-2011.pdf" title="http://support.sas.com/resources/papers/proceedings11/050-2011.pdf"&gt;http://support.sas.com/resources/papers/proceedings11/050-2011.pdf&lt;/A&gt; and searched on "target" (4 hits).&amp;nbsp; The only hit that came close was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Data sources are used to stream data between the clients. Currently SAS Enterprise Guide 4.3 does not support the &lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;execution of stored processes with data sources.&amp;nbsp; However, it will enable you to configure them. In the "Additional &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Topics" section of this paper, data sources are used to stream data from an Excel spreadsheet into a stored process. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For this example, however, leave the Data Sources and Data Targets fields blank. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There was nothing relevant in the "Additional Topics" section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the EG help, section "Defining the data sources to use as input and specifying the data targets for output", but it's a combined input/output help, and doesn't go into detail for creating a data target.&amp;nbsp; For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.&amp;nbsp; In the &lt;STRONG&gt;Table parameter name&lt;/STRONG&gt; box, specify the macro name of the SAS table. The macro variables are prefixed with "_SOURCE" or "_TARGET," and the value of the macro variable is the name of the template. This field is required.&amp;nbsp; &lt;/P&gt;&lt;P&gt;5.&amp;nbsp; (Optional) Specify the name of the table to use as a template. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I don't know the macro variable name to use, only that there is some macro variable(s) prefixed with _SOURCE or _TARGET, the value of the macro variable is the name of the template, and the template field is optional!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the EG help would be better if it had separate, discrete sections for Data Source and Data Targets, with a greater detail of explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any little birdies are listening, can you revisit this section of your documentation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the meantime, if anyone has defined a data target within a stored process, can you fill me in?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 23:58:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Creating-a-Data-Target-from-a-Stored-Process/m-p/113100#M3838</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2013-02-18T23:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Data Target from a Stored Process</title>
      <link>https://communities.sas.com/t5/Developers/Creating-a-Data-Target-from-a-Stored-Process/m-p/113101#M3839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Scott,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data sources and targets can be used for passing data into, and receiving data back from, stored processes deployed as web services.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For an example have a look at the following (and surrounding) sections from &lt;EM&gt;SAS Data Integration Studio 4.6: User's Guide&lt;/EM&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/etlug/65807/HTML/default/viewer.htm#p16r1rzx0gu1qin1kwjaugfdzpgq.htm"&gt;Requirements for Web Service Jobs&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/etlug/65807/HTML/default/viewer.htm#p06wxsblub5rvsn11m01klu3y6r7.htm"&gt;Deploying a Web Service Job as a Stored Process&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might also want to look at the&lt;A href="http://support.sas.com/documentation/cdl/en/wbsvcdg/62759/HTML/default/viewer.htm#titlepage.htm"&gt; SAS 9.3 BI Web Services: Developer's Guide&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Imagine 3rd party applications (Java, .NET etc.), using Web Service standards, passing data (via XML streams) into a SAS stored process for processing and analysis, then getting back data for display in that application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 01:58:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Creating-a-Data-Target-from-a-Stored-Process/m-p/113101#M3839</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2013-02-19T01:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Data Target from a Stored Process</title>
      <link>https://communities.sas.com/t5/Developers/Creating-a-Data-Target-from-a-Stored-Process/m-p/113102#M3840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Scott!&lt;/P&gt;&lt;P&gt;Tricia and I have an example in our '&lt;A href="http://www.bi-notes.com/the-50-keys-to-learning-sas-stored-processes/"&gt;The 50 Keys to Learning SAS Stored Processes&lt;/A&gt;" of using the Data Targets so that an excel spreadsheet can be forwarded into the Stored Process to run custom code. (via SAS Add-in to MS Office)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, new in 9.3 is Proc STP. The data targets definitions in metadata are used directly by SAS to generate the correct Proc STP statements. We have an example of that in the book as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you find other interesting uses for it!&lt;/P&gt;&lt;P&gt;Angela&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 03:34:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Creating-a-Data-Target-from-a-Stored-Process/m-p/113102#M3840</guid>
      <dc:creator>AngelaHall</dc:creator>
      <dc:date>2013-03-04T03:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Data Target from a Stored Process</title>
      <link>https://communities.sas.com/t5/Developers/Creating-a-Data-Target-from-a-Stored-Process/m-p/238823#M3841</link>
      <description>&lt;P&gt;Anybody want to walk through an example with this? I've tried for 20 hours and cannot send a stored process a file.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 02:12:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Creating-a-Data-Target-from-a-Stored-Process/m-p/238823#M3841</guid>
      <dc:creator>TedP</dc:creator>
      <dc:date>2015-12-11T02:12:23Z</dc:date>
    </item>
  </channel>
</rss>

