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>nnetpsjno()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETPSJNO()
 Determines the number of an active job
------------------------------------------------------------------------------
 Syntax

     NNETPSJNO(<cPServer>,<nPrinter>,[<cServer>|<nConId>])
        --> nJob

     Netware: 2.2 and 3.11

 Arguments

     <cPServer>  Designates the name of the print server that is
     accessed.

     <nPrinter>  Designates the number of the printer on <cPServer>.
     Values between 0 and 15 are possible.

     <cServer>  Designates the name of the file server used to access
     <cPServer>.  The print server checks login information on <cServer>.
     Therefore, the access rights can depend on the specified file server.
     Your workstation must be attached to <cServer>.

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

 Returns

     NNETPSJNO() returns the job number of the active job of <nPrinter>.  If
     an error occurs (for example, no active job), the function returns -1.

 Description

     NOVELL NET PRINT SERVER JOB NUMBER
     Internally, Netware uses job numbers to manage jobs within a queue.  The
     job number of an active job of <nPrinter> can be determined with
     NNETPSJNO().  The job number and queue name can be used to determine
     additional job information using the NNETJXXX() functions.

 Examples

     .  Determine the job number of the active job of printer 0 on
        PSERVER:

        IF (nJob:=NNETPSJNO('PSERVER',0))>=0
           ? 'Job number:',nJob
        ELSE
           ? 'No job active or other error!'
        ENDIF

     .  Determine the owner of the active job:

        nJob=NNETPSJNO('PSERVER',0)
        cQueue=NNETPSJQ('PSERVER',0)
        ? 'Owner: ',NNETJOWNER(cQueue,nJob)

See Also: NNETJLIST() NNETPSJQ()

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