Powered by QM on a Rpi server
About OpenQM
Sales and Downloads
Help and Support

KnowledgeBase 00103: Setting Many Options

Last updated: 17 Feb 2017
Applies to: All versions, release 3.0-7 onwards
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

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.

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


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