<?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: Using parameters in Stored procedures in SAS Customer Intelligence</title>
    <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/Using-parameters-in-Stored-procedures/m-p/618806#M1408</link>
    <description>&lt;P&gt;Thank you James, this worked a charm!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you perhaps know if you could create conditional parameters, i.e. what is put into the first parameter is used to filter the second?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Param1: select Country&lt;/P&gt;&lt;P&gt;Param2: Only shows Products sold in that Country&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2020 09:32:56 GMT</pubDate>
    <dc:creator>Ceciliavh</dc:creator>
    <dc:date>2020-01-21T09:32:56Z</dc:date>
    <item>
      <title>Using parameters in Stored procedures</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/Using-parameters-in-Stored-procedures/m-p/616844#M1394</link>
      <description>&lt;P&gt;Good morning&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We currently make extensive use of process nodes in our marketing campaigns, but I read somewhere that you should rather make use of Stored procedures as best practice. The process nodes obviously have quite a bit of customization with regards to filters and I am unsure how replace that with stored procedure functionality whilst maintaining flexibility of the process nodes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Example&lt;/U&gt;:&lt;/P&gt;&lt;P&gt;(Process node)&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Select business_key&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;from sales_table&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;where product = 'Cosmetics'&amp;nbsp; -- hardcoded&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to replace the 'Cosmetics' value with a parameter, but where would that value come from? I wouldn't want to use a Custom detail group on the Campaign definition as that would be restricting the marketer to only one type of selection in a campaign.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance..&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 07:37:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/Using-parameters-in-Stored-procedures/m-p/616844#M1394</guid>
      <dc:creator>Ceciliavh</dc:creator>
      <dc:date>2020-01-13T07:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using parameters in Stored procedures</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/Using-parameters-in-Stored-procedures/m-p/616846#M1395</link>
      <description>Hi,&lt;BR /&gt;When you define your stored process you can create prompts. These prompts can be different types (free text, check boxes, single/multiple choice drop down lists etc). These prompts get automatically created as macro variables in the STP code, and the values entered by the user passed in as the value. These prompts are displayed inside the node in CI studio for the user to enter values.&lt;BR /&gt;So lets say you have a known list of defined values for products (Cosmetics, Hardware, Electrical etc) you could create an STP with a prompt called Product_Type, set this prompt to be a static list and enter those 3 values for the user to choose from). Then in your SAS code you change it to:&lt;BR /&gt;&lt;BR /&gt;Select business_key&lt;BR /&gt;&lt;BR /&gt;from sales_table&lt;BR /&gt;where product = &amp;amp;Product_Type;&lt;BR /&gt;There is a lot of flexibility in the types of prompts you can use, including using lookup table to get the defined values - check out the MA user guide (version 6.5 Pg 142) for further info, as well as the SAS Platform documentation for creating STPs.&lt;BR /&gt;Regards&lt;BR /&gt;James&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Jan 2020 08:21:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/Using-parameters-in-Stored-procedures/m-p/616846#M1395</guid>
      <dc:creator>JamesAnderson</dc:creator>
      <dc:date>2020-01-13T08:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using parameters in Stored procedures</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/Using-parameters-in-Stored-procedures/m-p/618806#M1408</link>
      <description>&lt;P&gt;Thank you James, this worked a charm!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you perhaps know if you could create conditional parameters, i.e. what is put into the first parameter is used to filter the second?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Param1: select Country&lt;/P&gt;&lt;P&gt;Param2: Only shows Products sold in that Country&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 09:32:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/Using-parameters-in-Stored-procedures/m-p/618806#M1408</guid>
      <dc:creator>Ceciliavh</dc:creator>
      <dc:date>2020-01-21T09:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using parameters in Stored procedures</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/Using-parameters-in-Stored-procedures/m-p/620686#M1414</link>
      <description>Yes - you can use a feature called Cascading prompts for this.&lt;BR /&gt;Regards&lt;BR /&gt;James</description>
      <pubDate>Tue, 28 Jan 2020 22:10:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/Using-parameters-in-Stored-procedures/m-p/620686#M1414</guid>
      <dc:creator>JamesAnderson</dc:creator>
      <dc:date>2020-01-28T22:10:45Z</dc:date>
    </item>
  </channel>
</rss>

