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>nnetpspsq()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETPSPSQ()
 Determines the list of printers that service a queue
------------------------------------------------------------------------------
 Syntax

     NNETPSPSQ(<cPServer>,<cQueue>,[<cServer1>],[<cServer2>|
        <nConId>]) --> cPrinter

     Netware: 2.2 and 3.11

 Arguments

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

     <cQueue>  Designates a print queue.

     <cServer1>  Designates the file server of <cQueue>.  The default
     value designates the default server.

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

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

 Returns

     NNETPSPSQ() returns a character string.  Each character (byte) indicates
     the number of a print server printer.

 Description

     NOVELL NET PRINT SERVER PRINTERS SERVICING QUEUE
     NNETPSPSQ() determines the numbers of all the printers on <cPServer>
     that service <cQueue> on <cServer1>.  The list of printers is returned
     as a character string in which each character specifies a printer
     number.

 Example

     Display a list that contains the printer number and printer name of all
     the printers on PSERVER that service QUEUE1 on the default server:

     cPrinters=NNETPSPSQ('PSERVER','QUEUE1')

     FOR i=1 TO LEN(cPrinters)
        nNum:=ASC(SUBSTR(cPrinters,i,1)
        ? nNum,NNETPSPNAM('PSERVER',nNum)
     NEXT i

See Also: NNETPSPNAM() NNETPSQL()

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