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>nnetpsql()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETPSQL()
 Determines the queues that are serviced by a print server printer
------------------------------------------------------------------------------
 Syntax

     NNETPSQL(<cPServer>,<nPrinter>,[<cServer>|<nConId>])
        --> aQueues

     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 therefore depend on the specified file
     server.  Your workstation must be attached to <cServer>.

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

 Returns

     NNETPSQL() returns an array with subarrays (two-dimensional array).
     Each subarray contains information about a serviced queue.  For the
     structure of the subarrays, see the following table:

     Table 27.12:  NNETPSQL() Subarray Structure
     ------------------------------------------------------------------------
     Position     Metasymbol     CTPS.CH      Definition
     ------------------------------------------------------------------------
     1            cServer        QL_SERVER    File server
     2            cQName         QL_NAME      Queue name
     3            nPrior         QL_PRIOR     Queue priority
     ------------------------------------------------------------------------

     If an error occurs, the function returns an empty array.

 Description

     NOVELL NET PRINT SERVER QUEUE LIST
     NNETPSQL() returns a list of all print queues that are serviced by
     <nPrinter> on <cPServer>.  The array also contains the name of queue's
     file server because a print server can access several file servers.

 Example

     Determine the print queues for printer 0 on print server PSERVER, and
     display the queue's file server and name:

     #include "ctnet.ch"

     aQs=NNETPSQL('PSERVER',0)
     FOR i=1 TO LEN(aQs)
        ? aQs[i,QL_SERVER],aQs[i,QL_NAME]
     NEXT i

See Also: NNETPSPSQ()

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