CALL "WIN$PRINTER" USING WINPRINT-SET-PRINTER-AS                           winprint-as                    GIVING returnCode  | 
WINPRINT-SET-PRINTER-AS  | Constant  | ||
winprint-as  | Numeric Item  | Valid values are:  | |
WPRT-AS-CLIENT  | print job is redirect to the client machine.  | ||
WPRT-AS-SERVER  | print job is performed on the server machine.  | ||
1   | Operation successful.  | 
WPRTERR-UNSUPPORTED  | The WIN$PRINTER library routine is not supported.  | 
WPRTERR-BAD-ARG  | The WIN$PRINTER library routine has been called with bad parameters.  |