0.9b (c) 1995 Peter Childs
The function deletes a print job from a printer queue.
Syntax
MyRc = NetDelete(NETPRINTJOB, SrvName, QueueName, JobId)
Parameters
The parameters specified are:
SrvName The server computer name
QueueName The name of the printer queue
JobId The job identification number
Note
The server computer name can be specified as '' for a local server.
Example
/* Delete a print job */ call RxFuncAdd 'LoadLsRxutFuncs', 'LSRXUT', 'LoadLsRxutFuncs' call LoadLsRxutFuncs NETPRINTJOB = 110 SrvName = '\\ILIDC' QueueName = 'IBM4019L' JobId = 6 myRc = NetDelete(NETPRINTJOB, SrvName, QueueName, JobId) if myRc <> '0' then do say 'Got error from NetDelete() ' myRc call DropLsRxutFuncs exit 9 end else do say 'Print job deleted successfully' say end call DropLsRxutFuncs call RxFuncDrop 'LoadLsRxutFuncs' exit 0
Example Output
Print job deleted successfully
Inf-HTML End Run - Successful