DSSetDisableJobHandler

Use the DSSetDisableJobHandler function to enable or disable job-level message handling.

Syntax

ErrCode = DSSetDisableJobHandler (JobHandle, value)

JobHandle is the handle for the job as derived from DSAttachJob.

value is TRUE to disable job-level message handling, or FALSE to enable job-level message handling.

ErrCode is 0 if DSSetDisableJobHandler is successful, otherwise it is one of the following negative integers:

  • DSJE.BADHANDLE Invalid JobHandle.
  • DSJE.BADVALUE value is not appropriate for that parameter type.

Example

The following command disables job-level message handling for the qsales job:

GenErr = DSSetDisableJobHandler (qsales_handle, TRUE)