IBM OS/2 LAN Server REXX Utility DLL


Inf-HTML [About][Toc][Index] 0.9b (c) 1995 Peter Childs


RxSplControlDevice()


The function cancels, holds, continues, or restarts a print device. Use 
this function with care. 
Syntax 

MyRc = RxSplControlDevice(ComputerName, RxStem)


Parameters 
The required parameter values are: 
ComputerName   Must be either be specified as '' for a local computer or 
               '\\computername'. 
'RxStem'       A REXX variable which is divided into: 
   o RxStem.PrintDeviceName 
     The printer name 
   o RxStem.Control 
     The control action. The following values are valid: 
     Value            What it does
     -----------      -------------------------
     PRD_DELETE       Delete current print job
     PRD_PAUSE        Pause printing
     PRD_CONT         Continue paused print job
     PRD_RESTART      Restart print job.
     
     
               

Example use 
/* Control a printer device */
if RxFuncQuery('RxSplControlDevice') <> 0 then do
 call RxFuncAdd 'LoadLsRxutFuncs', 'LSRXUT', 'LoadLsRxutFuncs'
 call LoadLsRxutFuncs
end

ComputerName           = '\\ILIDC'
RxStem.PrintDeviceName = 'LPT1'
RxStem.Control         = 'PRD_PAUSE'

MyRc = RxSplControlDevice(ComputerName, RxStem)

if MyRc <> '0' then do
 say 'Error from RxSplControlDevice. RC =' MyRc
 exit 9
end
else do
 say 'Printer Device' RxStem.PrintDeviceName 'paused successfully'
end

exit 0


Inf-HTML End Run - Successful