Previous Topic: $PSCALL Options

Next Topic: $PSCALL OPT=CANCEL


$PSCALL OPT=BROWSE

Browses a print request or the output for a print request.

&CONTROL NOSHRVARS
-EXEC $PSCALL  OPT=BROWSE 
             [ BROWSE={ OUTPUT | REQUEST } ]
               REQ=n

Presents the Browse Output panel showing the output for a print request or the Print Request panel showing the request details. You cannot browse the output for a request whose status is BUILD-PRT or DIRECT-ERR.

When the Browse Output or Print Request panel is terminated by the user entering the EXIT or RETURN command (or pressing the Function key to which those commands are assigned), control is returned to the NCL procedure that executed $PSCALL.

Operands:

OPT=BROWSE

Specifies that a print request or the output for a print request is to be browsed.

BROWSE={ OUTPUT | REQUEST }

Specifies whether the request, or the output for the request, is to be browsed.

OUTPUT

Presents the Browse Output panel

REQUEST

Presents the Print Request panel

REQ=n

Specifies the number of the print request to be browsed.

Return Codes:

0

$PSCALL completed successfully. &$PSFDBK may be set to the following value:

1

RETURN command entered (or the function key to which it is assigned was pressed).

4

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

1

User not authorized for the request.

18

Print request not found on the spool.

19

No output found for the print request.

22

Status of the print request was BUILD-PRT or DIRECT-ERR.

8

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

Examples: OPT=BROWSE

&CONTROL NOSHRVARS 
-EXEC $PSCALL OPT=BROWSE REQ=765
&CONTROL NOSHRVARS 
-EXEC $PSCALL OPT=BROWSE BROWSE=REQUEST REQ=9812