Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Book 4-Appendices - <b>nnetjdel()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETJDEL()
 Deletes a job from a print queue
------------------------------------------------------------------------------
 Syntax

     NNETJDEL(<cQueue>,<nJob>,[<cServer>|<nConId>])
        --> lSuccess

     Netware: 2.2 and 3.11

 Arguments

     <cQueue>  Designates the name of the print queue that is accessed.

     <nJob>  Designates the job number of the job that is deleted from
     <cQueue>.

     <cServer>  Designates the name of the file server on which <cQueue>
     is processed.  Your workstation must be attached to <cServer>.

     <nConId>  Designates the connection ID of your workstation on
     <cServer>.

 Returns

     NNETJDEL() returns .T. if the job has been deleted successfully.  If an
     error occurs, the function returns .F.  An error can occur if <cQueue>
     does not exist or the requesting user does not have the required access
     rights.

 Description

     NOVELL NET JOB DELETE
     NNETJDEL() allows you to delete a job from a queue.  The job that is
     deleted is specified by its job number.  The job number has nothing to
     do with the logical position of a job within a queue.  The job number
     can be determined with NNETCAPJOB() or NNETJLIST().  A job that is
     already in process is canceled immediately by a call of NNETJDEL().

 Note

     .  The user of a queue can delete a job only if the user
        submitted it to the queue.  The queue operator can remove any job.

 Example

     Delete the second job from the queue LINEPRINTER:

     nJob=BIN2I(SUBSTR(NNETJLIST('LINEPRINTER'),3,2))
     IF NNETJDEL('LINEPRINTER',nJob)
     ? 'Job has been deleted successfully!'
     ELSE
     ? 'Job could not be deleted!'
     ENDIF

See Also: NNETCAPJOB() NNETJLIST()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson