<?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: Program Code - Multiple Value Prompt in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Program-Code-Multiple-Value-Prompt/m-p/177219#M33918</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Q1983: The Communities Admin posted the following a week or so ago:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;Your discussions will &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-decoration: underline; background-color: #ffffff;"&gt;not&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt; go through moderation. However, we are fine tuning our spam filter and post-rate timing to help curb this recent abuse. If you experience any issues with the post-rate change (prevents multiple messages from being posted in a certain time frame - such as within 60 seconds) ... let me know&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Feb 2015 17:39:00 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2015-02-23T17:39:00Z</dc:date>
    <item>
      <title>Program Code - Multiple Value Prompt</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Program-Code-Multiple-Value-Prompt/m-p/177216#M33915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to create a multiple value text prompt with user input values.&lt;/P&gt;&lt;P&gt;My code so far is:&lt;/P&gt;&lt;P&gt;proc report data=FS_STG.STG_PROMOTION nowd;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; column PROD_ID PROMO_EFF_DATE cv1 PROMO_END_DATE cv2 VEHICLE_NM PROMO_NAME FOCUS_PAGE PROMO_PRICE,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MEAN=PROMO_PRICE_MEAN RETAIL_PRICE, MEAN=RETAIL_PRICE_MEAN PROMO_NO, MODE=PROMO_NO_MODE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE PROD_ID = "&amp;amp;prod_id" ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; define PROD_ID / group 'PROD_ID' missing;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; compute PROD_ID;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if PROD_ID ne ' ' then hold1=PROD_ID;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if PROD_ID eq ' ' then PROD_ID=hold1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; endcomp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The log displays:&lt;/P&gt;&lt;P&gt;%LET PROD_ID1 = 5550123;&lt;/P&gt;&lt;P&gt;%LET PROD_ID0 = 2;&lt;/P&gt;&lt;P&gt;%LET PROD_ID_count = 2;&lt;/P&gt;&lt;P&gt;%LET PROD_ID2 = 1100255;&lt;/P&gt;&lt;P&gt;%LET PROD_ID = 5550123;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With my current code the results only display PROD_ID 5550123. What do I need to change to have it also recognize PROD_ID2, etc (for the number of values the user inputs)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 17:54:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Program-Code-Multiple-Value-Prompt/m-p/177216#M33915</guid>
      <dc:creator>bclark</dc:creator>
      <dc:date>2015-02-20T17:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Program Code - Multiple Value Prompt</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Program-Code-Multiple-Value-Prompt/m-p/177217#M33916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; You will at least have to change your WHERE statement to something like:&lt;/P&gt;&lt;P&gt;WHERE PROD_ID in ("&amp;amp;PROD_ID1" "&amp;amp;PROD_ID2" "&amp;amp;PROD_ID3" "&amp;amp;PROD_ID4");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; But depending on how you want your program to operate, you may have to "macro-ize" your code with a %DO loop to build the exact WHERE statement by looping from 1 to &amp;amp;PROD_ID_count and using macro techniques in a macro program. &amp;amp;PROD_ID will always show the first selection that is made in a multi-value selection prompt, so if you need the other values, it is up to you to use the numbered macro variables that are sent by the prompting interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Feb 2015 16:13:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Program-Code-Multiple-Value-Prompt/m-p/177217#M33916</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-02-22T16:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Program Code - Multiple Value Prompt</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Program-Code-Multiple-Value-Prompt/m-p/177218#M33917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you tell me why I am getting error messages saying I cannot post more than once every 60 seconds.&amp;nbsp; I cannot locate anyone in troubleshooting&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 16:57:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Program-Code-Multiple-Value-Prompt/m-p/177218#M33917</guid>
      <dc:creator>Q1983</dc:creator>
      <dc:date>2015-02-23T16:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Program Code - Multiple Value Prompt</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Program-Code-Multiple-Value-Prompt/m-p/177219#M33918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Q1983: The Communities Admin posted the following a week or so ago:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;Your discussions will &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-decoration: underline; background-color: #ffffff;"&gt;not&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt; go through moderation. However, we are fine tuning our spam filter and post-rate timing to help curb this recent abuse. If you experience any issues with the post-rate change (prevents multiple messages from being posted in a certain time frame - such as within 60 seconds) ... let me know&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 17:39:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Program-Code-Multiple-Value-Prompt/m-p/177219#M33918</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2015-02-23T17:39:00Z</dc:date>
    </item>
  </channel>
</rss>

