Previous Topic: $PSCALL OPT=CANCEL

Next Topic: $PSCALL OPT=CONFIRM


$PSCALL OPT=CLOSE

Closes an open print request.

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

Closes an open print request. The request must have been opened by the same NCL process. If the request was opened with the HOLD operand set to NO, the request is queued for printing, otherwise the status is set to HELD and the request is not printed until released.

Operands:

OPT=CLOSE

Specifies that an open print request is to be closed.

REQ=n

Specifies the number of the print request to be closed.

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.

Example: OPT=CLOSE

& CONTROL NOSHRVARS 
-EXEC $PSCALL OPT=CLOSE REQ=1256