Disable Command Name Command

PURPOSE:  The DISABLE COMMAND name command prohibits the use of specified commands at ACCENT R command level.  This command is valid in a CM, PM, SF and as a direct command.

SYNTAX

DISABLE COMMAND name [{IF; UNLESS} clause]

DISABLE

makes it impossible to execute the specified command interactively.  Disabled commands still function if executed from a command module (CM).  If the command USE, DEFINE, MODIFY, or CREATE is disabled, the object to which the command applies must be specified.  Thus DISABLE COMMAND CREATE is not allowed, but DISABLE COMMAND CREATE DS is allowed.

[{IF; UNLESS} clause]

specifies certain criteria that must be met for the ENABLE or DISABLE command to take effect.

EXAMPLE

If a disabled command is given at the terminal, it is not executed and a warning message is issued.

*DISABLE COMMAND MODIFY PM, COMMAND EXTRACT
*MODIFY PM INVOICES
THIS COMMAND IS PROTECTED

NOTES:  This option is used by applications programmers to protect an application from being altered by users.  An altered application could produce output with errors or fail to execute.

There is no ENABLE option, as commands cannot be re-enabled during the same ACCENT R session.  All commands are available (default) unless DISABLE.