logo
Powered by QM on a Rpi server
Home
About OpenQM
Sales and Downloads
  Get QM Today
  Current Downloads
  Evaluation Licence
  What's New
  Resources and Solutions
  Pay Invoice Online
  Archived Releases
  Activate Package Trial
Help and Support
About
Login

KnowledgeBase 00103: Setting Many Options

Last updated: 17 Feb 2017
Applies to: All versions, release 3.0-7 onwards
Search  
Top level index       Full Index Search Tips
Previous article     Next article

This article was originally published as a Tip of the Week.

The OPTION Command

The OPTION command provides the ability to enable a wide range of features of QM. Most of these affect the command language environment in some way. For example

   OPTION NO.PHANTOM.NOTIFY 
suppresses the normal message sent to a user's screen when a phantom process started by that user terminates. The OPTION command is most commonly used in the LOGIN paragraph.

If many options are to be set, they can be specified in a single OPTION command.

   OPTION NO.PHANTOM.NOTIFY NON.NUMERIC.WARNING DIV.ZERO.WARNING 
If the list is large, combining options into a single command by use of this format can make a small improvement to startup performance which may be useful with applications that launch many short life phantom processes.


Encoded Option Settings

The current option settings can be viewed by use of the OPTION command with no qualifying data. When this is done, the final line of output is of the form

   Encoded: X1141 
where the X is followed by a hexadecimal value that is an encoded representation of the current option settings. The encoding is compressed rather than being a simple hexadecimal value with a bit for each option.

Once the encoded option value has been determined, the OPTION command in the LOGIN paragraph can be replaced with

   OPTION X1141 
to set the options to a state that matches the encoded value which gives a further small performance benefit. This method is safe even across QM upgrades where new options might have been added. Any new options will be initially disabled.


Related Articles

None.



Please tell us if this article was helpful
Very     Slightly     Not at all
Comments
Email (optional)