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>nnetjcnt()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETJCNT()
 Determines the number of jobs in a print queue
------------------------------------------------------------------------------
 Syntax

     NNETJCNT(<cQueue>,[<cServer>|<nConId>]) --> nJobs

     Netware: 2.2 and 3.11

 Arguments

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

     <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

     NNETJCNT() returns the number of jobs that are currently in a print
     queue.  If an error occurs (for example, non existing print queue), the
     function returns -1.

 Description

     NOVELL NET JOB COUNT
     NNETJCNT() allows you to determine when it is safe to modify certain
     characteristics of a queue (for example, the connection to a print
     server).  You should wait until the queue is empty to modify certain
     characteristics of the queue.  NNETJCNT() can be used to count the jobs
     in a number of queues.  With NNETSETQ() you can then assign a job to the
     queue with the lowest number of jobs.

 Note

     .  This function requires that the requesting user have access to
        the queue as a user or an operator.

 Example

     Determine the number of jobs in the queue LINEPRINTER:

     ? 'Jobs:',NNETJCNT('LINEPRINTER')

See Also: NNETJLIST()

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