![]() |
Powered by QM on a Rpi server |
|
KnowledgeBase 00103: Setting Many OptionsThis article was originally published as a Tip of the Week. The OPTION CommandThe 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.NOTIFYsuppresses 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.WARNINGIf 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 SettingsThe 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: X1141where 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 X1141to 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 ArticlesNone. |