Enable/Disable Output Check Option

PURPOSE:  The OUTPUT CHECK option allows checking of the status of output files.  This command is valid in a CM, PM, SF and as a direct command.

SYNTAX

{ENABLE; DISABLE} OUTPUT CHECK [{IF; UNLESS} clause]

ENABLE

causes ACCENT R to inform the user whether a specified output file or Data Set (DS) is new, empty, or contains data before executing any command that references it.  A "N" or "NO" response causes the command to abort. A "Y" or "YES" response causes the command to execute.  A carriage return in response defaults to a "YES" response.

DISABLE

suppresses such checking and is the default condition.

{IF; UNLESS} clause

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

EXAMPLE

*ENABLE OUTPUT CHECK
*SORT ON NUMBER TO SALES
DS file SALES.DS is empty, OK?Y
*ENTER
DS file SALES.DS is empty, OK?
:: 1
:: 2
:: 3
:: ***
*SORT ON NUMBER TO SALES
DS file SALES.DS has data, OK?Y
*SORT ON NUMBER TO SALES
DS file SALES.DS has data, OK?N
*Request to write DS SALES denied by user.