Relative values for Model 204 numeric parameters: Difference between revisions
m (Created page with "Prior to the introduction of this feature, <var class="product">Model 204</var> numeric parameter settings are absolute values only, optionally qualified by a leading minus sign ...") |
mNo edit summary |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Prior to the introduction of this feature, <var class="product">Model 204</var> numeric parameter settings are absolute values only, optionally qualified by a leading minus sign (< | Prior to the introduction of this feature, <var class="product">Model 204</var> numeric parameter settings are absolute values only, optionally qualified by a leading minus sign (<tt>-</tt>) to indicate a negative value. For example, you might set the value of the LSTBL user table to 50,000 bytes: | ||
<p class="code">UTABLE LSTBL 50000 </p> | <p class="code">UTABLE LSTBL 50000 </p> | ||
Subsequently, you find that you need to increase the initial setting | Subsequently, you may find that you need to increase the initial setting, trying increments of 10,000. To do this, you can issue <code>UTABLE LSTBL 60000</code>, <code>UTABLE LSTBL 70000</code>, etc. | ||
The plus sign after the setting value above indicates a relative increase of 10,000. An alternative equivalent is: | As of version 7.5 of <var class="product">Model 204</var> or version 8.0 of the <var class="product">Sirius Mods</var>, you can explicitly increment the setting by 10,000: | ||
<p class="code">UTABLE LSTBL 10000+</p> | |||
The plus sign after the setting value above indicates not a new parameter value but a change to the current value: that is, a relative increase of 10,000. An alternative equivalent, which increases the current value by 20%, is: | |||
<p class="code">UTABLE LSTBL 120%</p> | <p class="code">UTABLE LSTBL 120%</p> | ||
To decrease the initial setting by 10,000, you can issue either of these relative settings: | To decrease the initial setting by 10,000, you can issue either of these relative settings, both of which set LSTBL to 40000: | ||
<p class="code">UTABLE LSTBL 10000- | <p class="code">UTABLE LSTBL 10000- | ||
UTABLE LSTBL 80%</p> | UTABLE LSTBL 80%</p> | ||
The option to use the relative setting of the parameter may be particularly useful in a dynamic environment where | No space between the numeric value and the relative value indicator is allowed. | ||
These three indicators — a following plus sign (<tt>+</tt>), minus sign (<tt>-</tt>), or percent sign (<tt>%</tt>) — are the only relative setting indicators. Though they are likely to most commonly be used for server table sizes, | |||
they are available for all <var class="product">Model 204</var> numeric parameters; for example: | |||
<p class="code">R SCRNSTBL 4000+ | |||
</p> | |||
The option to use the relative setting of the parameter may be particularly useful in a dynamic environment where a parameter setting may be subject to change from a variety of code sources and conditions. In this case, explicit settings might become difficult to maintain. | |||
[[Category:User Language syntax enhancements]] | |||
[[Category:Parameters]] |
Latest revision as of 19:20, 24 September 2013
Prior to the introduction of this feature, Model 204 numeric parameter settings are absolute values only, optionally qualified by a leading minus sign (-) to indicate a negative value. For example, you might set the value of the LSTBL user table to 50,000 bytes:
UTABLE LSTBL 50000
Subsequently, you may find that you need to increase the initial setting, trying increments of 10,000. To do this, you can issue UTABLE LSTBL 60000
, UTABLE LSTBL 70000
, etc.
As of version 7.5 of Model 204 or version 8.0 of the Sirius Mods, you can explicitly increment the setting by 10,000:
UTABLE LSTBL 10000+
The plus sign after the setting value above indicates not a new parameter value but a change to the current value: that is, a relative increase of 10,000. An alternative equivalent, which increases the current value by 20%, is:
UTABLE LSTBL 120%
To decrease the initial setting by 10,000, you can issue either of these relative settings, both of which set LSTBL to 40000:
UTABLE LSTBL 10000- UTABLE LSTBL 80%
No space between the numeric value and the relative value indicator is allowed.
These three indicators — a following plus sign (+), minus sign (-), or percent sign (%) — are the only relative setting indicators. Though they are likely to most commonly be used for server table sizes, they are available for all Model 204 numeric parameters; for example:
R SCRNSTBL 4000+
The option to use the relative setting of the parameter may be particularly useful in a dynamic environment where a parameter setting may be subject to change from a variety of code sources and conditions. In this case, explicit settings might become difficult to maintain.