Previous Topic: $PSCALL OPT=BROWSE

Next Topic: $PSCALL OPT=CLOSE


$PSCALL OPT=CANCEL

Cancels an open print request.

&CONTROL NOSHRVARS
-EXEC $PSCALL    OPT=CANCEL 
                 REQ=n

Cancels an open print request. The request must have been opened by the same NCL process. The print request is closed and deleted from the spool.

Operands:

OPT=CANCEL

Specifies that an open print request is to be canceled.

REQ=n

Specifies the number of the print request to be canceled.

Return Codes:

0

$PSCALL completed successfully

4

$PSCALL completed successfully. The request was denied. &SYSMSG is set to an error message and &$PSFDBK is set to the following value:

17

Print request not open

8

An error occurred. &SYSMSG is set to an error message.

Examples: OPT=CANCEL

& CONTROL NOSHRVARS 
-EXEC $PSCALL OPT=CANCEL REQ=898