<?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: How can I change the size/length of a numeric shared prompt? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Are-there-limits-on-the-nbr-of-digits-that-can-be-used-for-MIN/m-p/257947#M49582</link>
    <description>&lt;P&gt;To resolve my issue I wound up creating the prompt variables as text data type then converting them to numeric once I read them into the stored process.&amp;nbsp; It is the prompt that has the limit so I can use a number larger than that limit in my where clause successfully.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Mar 2016 13:05:22 GMT</pubDate>
    <dc:creator>ncsthbell</dc:creator>
    <dc:date>2016-03-21T13:05:22Z</dc:date>
    <item>
      <title>Are there limits on the nbr of digits that can be used for MIN &amp; MAX value for a numeric prompt?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Are-there-limits-on-the-nbr-of-digits-that-can-be-used-for-MIN/m-p/256778#M49242</link>
      <description>&lt;P&gt;I created a shared numeric prompt (From_Amt) in SAS Management Console since I will have 10 reports using this prompt.&amp;nbsp; When I built the prompt, it had settings for 'minimum' &amp;amp; 'maximum' values allowed.&amp;nbsp; I assume this is the value, not the length so I did not set it. Note, I also built prompt (To_Amt) the same way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I built the first stored process pulling in this shared prompt.&amp;nbsp; When I test running the STP, at the prompt for 'From_Amt' I entered a 10 digit numeric value (0123456789) 10 digits.&amp;nbsp;&amp;nbsp; A red warning icon appears and displays 'invalid value for this prompt'.&amp;nbsp; If I change the&lt;/P&gt;
&lt;P&gt;From_Amt' to value (012345678) 9 digits, it accepts this.&amp;nbsp; If I have no min &amp;amp; max amounts defined, why does it accept a 9 digit From_Amt but errors on 10 digit From_Amt.&amp;nbsp; I am very confused on this!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions would be appreciated!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Update:&lt;/P&gt;
&lt;P&gt;In testing, in set&amp;nbsp;the max &amp;amp; min amounts to a&amp;nbsp;10 digit values, it works.&amp;nbsp; However, &amp;nbsp;once I set the maximum value to an 11 digit value, I get an error (snapshot below).&amp;nbsp; My users need to be able to enter a values up to a 11 digit number such as '99290058895'.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't find anything that tells me there is a limit on the min &amp;amp; max values on a numeric prompt.&amp;nbsp;&amp;nbsp; I have several other prompts I need to build the same way so I am basically hung up on this right now.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 13:53:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Are-there-limits-on-the-nbr-of-digits-that-can-be-used-for-MIN/m-p/256778#M49242</guid>
      <dc:creator>ncsthbell</dc:creator>
      <dc:date>2016-03-16T13:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I change the size/length of a numeric shared prompt?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Are-there-limits-on-the-nbr-of-digits-that-can-be-used-for-MIN/m-p/256868#M49279</link>
      <description>&lt;P&gt;Hi mate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;Provide Minimum and Maximum Prompt Values&lt;/H2&gt;
&lt;P&gt;If you know the data starts at and ends in a certain time frame, then don’t allow the user to select past those values. &amp;nbsp;Check the&lt;A title="SAS Stored Process: How do I use a Date Range Prompt?" href="http://www.bi-notes.com/2011/12/prompts-how-do-i-use-a-date-range-prompt/" target="_blank"&gt;SAS Stored Process: How do I use a Date Range Prompt?&lt;/A&gt;&amp;nbsp;for an example of setting minimum and maximum date values.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here’s some examples to give you some other ideas. For numeric prompts, if you know the user cannot select a value greater than 100, then limit the value to 100. &amp;nbsp;Likewise, if you are allowing the user to type a value, then set the minimum value to 5. &amp;nbsp;It is more likely to be a word. &amp;nbsp;You have to decide based on your data – but I hope this example just gives you some ideas of how to use the prompts built-in error-checking.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.bi-notes.com/wp-content/uploads/2012/05/STP_usable_03.png" target="_blank"&gt;&lt;IMG class="aligncenter size-full wp-image-3305" src="http://www.bi-notes.com/wp-content/uploads/2012/05/STP_usable_03.png" border="0" alt="" title="STP_usable_03" width="915" height="458" /&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These built-in error checks from SAS will save you a lot of coding – so use them to make your stored process more robust and&amp;nbsp;usable. &amp;nbsp;But mainly to prevent users calling you to report what your stored process does not do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 18:30:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Are-there-limits-on-the-nbr-of-digits-that-can-be-used-for-MIN/m-p/256868#M49279</guid>
      <dc:creator>DartRodrigo</dc:creator>
      <dc:date>2016-03-15T18:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can I change the size/length of a numeric shared prompt?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Are-there-limits-on-the-nbr-of-digits-that-can-be-used-for-MIN/m-p/257024#M49309</link>
      <description>&lt;P&gt;I understand that but I am also not using a date prompt.&amp;nbsp;&amp;nbsp; I have searched and can not find anything that tells me the 'limitations' for the 'minimum' &amp;amp; 'maximum' values on a numeric prompt being created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In testing, in set&amp;nbsp;the max &amp;amp; min amounts to a&amp;nbsp;10 digit values, it works.&amp;nbsp; However, &amp;nbsp;once I set the maximum value to an 11 digit value, I get an error (snapshot below).&amp;nbsp; My users need to be able to enter a values up to a 11 digit number such as '99290058895'.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't find anything that tells me there is a limit on the min &amp;amp; max values on a numeric prompt.&amp;nbsp;&amp;nbsp; I have several other prompts I need to build the same way so I am basically hung up on this right now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 13:48:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Are-there-limits-on-the-nbr-of-digits-that-can-be-used-for-MIN/m-p/257024#M49309</guid>
      <dc:creator>ncsthbell</dc:creator>
      <dc:date>2016-03-16T13:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I change the size/length of a numeric shared prompt?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Are-there-limits-on-the-nbr-of-digits-that-can-be-used-for-MIN/m-p/257047#M49311</link>
      <description>&lt;P&gt;The error message i get is (translated): A number greater than -2.147.483.649 and smaller than 2.147.483.648 is required.Using EG 6.1 32 Bit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recommend opening a track with tech support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 15:21:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Are-there-limits-on-the-nbr-of-digits-that-can-be-used-for-MIN/m-p/257047#M49311</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2016-03-16T15:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I change the size/length of a numeric shared prompt?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Are-there-limits-on-the-nbr-of-digits-that-can-be-used-for-MIN/m-p/257947#M49582</link>
      <description>&lt;P&gt;To resolve my issue I wound up creating the prompt variables as text data type then converting them to numeric once I read them into the stored process.&amp;nbsp; It is the prompt that has the limit so I can use a number larger than that limit in my where clause successfully.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 13:05:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Are-there-limits-on-the-nbr-of-digits-that-can-be-used-for-MIN/m-p/257947#M49582</guid>
      <dc:creator>ncsthbell</dc:creator>
      <dc:date>2016-03-21T13:05:22Z</dc:date>
    </item>
  </channel>
</rss>

