<?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 Build Multiple STP Prompts from One Dataset in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Build-Multiple-STP-Prompts-from-One-Dataset/m-p/379454#M5455</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a good way that I can use a single dataset to define the response options for several stored process prompts?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Suppose I make a MyPrompts dataset like:&lt;/P&gt;
&lt;PRE&gt;Prompt    Value   Label
Prompt1   A         Pretty A
Prompt1   B         Pretty B
Prompt2   X         Pretty X Label
Prompt2   Y         Pretty Y Label&lt;BR /&gt;Prompt2   Z         Pretty Z Label
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS Management Console, I would like to&amp;nbsp;define a&amp;nbsp;stored process and create Prompt1 which would have options A/B (formatted as Pretty A / Pretty B)&amp;nbsp; and also Prompt2 with options X/Y/Z.&amp;nbsp; Similar to the way you can make a single CNTLIN dataset for PROC FORMAT which defines multiple formats.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently I end up making a separate dataset for each prompt, and registering each prompt-specific dataset in the metadata, which is a hassle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think I could do what I want in SAS Management Console when I create a dynamic prompt, if there was a way that I could say to use MyPrompts as the data source for a prompt *and* specify a criteria to subset its rows.&amp;nbsp; So when I create&amp;nbsp;Prompt1, I would specify the data source as MyPrompts (where(Prompt="Prompt1")).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thought maybe I could get what I want by using Dependencies.&amp;nbsp; But the dependencies only allow me to subset the source data by the value of another prompt.&amp;nbsp; In this case, I would want to subset by a literal value.&amp;nbsp; I suppose it might work if I defined a hidden prompt for each prompt which has the name of the prompt.&amp;nbsp; But ugh.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;--Q.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2017 16:13:46 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2017-07-26T16:13:46Z</dc:date>
    <item>
      <title>Build Multiple STP Prompts from One Dataset</title>
      <link>https://communities.sas.com/t5/Developers/Build-Multiple-STP-Prompts-from-One-Dataset/m-p/379454#M5455</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a good way that I can use a single dataset to define the response options for several stored process prompts?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Suppose I make a MyPrompts dataset like:&lt;/P&gt;
&lt;PRE&gt;Prompt    Value   Label
Prompt1   A         Pretty A
Prompt1   B         Pretty B
Prompt2   X         Pretty X Label
Prompt2   Y         Pretty Y Label&lt;BR /&gt;Prompt2   Z         Pretty Z Label
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS Management Console, I would like to&amp;nbsp;define a&amp;nbsp;stored process and create Prompt1 which would have options A/B (formatted as Pretty A / Pretty B)&amp;nbsp; and also Prompt2 with options X/Y/Z.&amp;nbsp; Similar to the way you can make a single CNTLIN dataset for PROC FORMAT which defines multiple formats.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently I end up making a separate dataset for each prompt, and registering each prompt-specific dataset in the metadata, which is a hassle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think I could do what I want in SAS Management Console when I create a dynamic prompt, if there was a way that I could say to use MyPrompts as the data source for a prompt *and* specify a criteria to subset its rows.&amp;nbsp; So when I create&amp;nbsp;Prompt1, I would specify the data source as MyPrompts (where(Prompt="Prompt1")).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thought maybe I could get what I want by using Dependencies.&amp;nbsp; But the dependencies only allow me to subset the source data by the value of another prompt.&amp;nbsp; In this case, I would want to subset by a literal value.&amp;nbsp; I suppose it might work if I defined a hidden prompt for each prompt which has the name of the prompt.&amp;nbsp; But ugh.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;--Q.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 16:13:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Build-Multiple-STP-Prompts-from-One-Dataset/m-p/379454#M5455</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2017-07-26T16:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Build Multiple STP Prompts from One Dataset</title>
      <link>https://communities.sas.com/t5/Developers/Build-Multiple-STP-Prompts-from-One-Dataset/m-p/383768#M5456</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;I think that you outlined the two options available to you: (1) separate view or table and (2) hidden, dependent prompt.&lt;/FONT&gt;&lt;/P&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>Fri, 28 Jul 2017 15:38:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Build-Multiple-STP-Prompts-from-One-Dataset/m-p/383768#M5456</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2017-07-28T15:38:52Z</dc:date>
    </item>
  </channel>
</rss>

