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>nnetpjpsrv()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETPJPSRV()
 Sets or queries the target print server for a print job
------------------------------------------------------------------------------
 Syntax

     NNETPJPSRV([<cJob>],[<cNewServer>],[<cUser>],
        [<cServer>|<nConId>]) --> cPrintServer

     Netware: 2.2 and 3.11

 Arguments

     <cJob>  Designates the selected print job definition.  The default
     value designates the default job.

     <nNewServer>  Designates a new print server name for <cJob>.  The
     print server must be in the print server list of the currently defined
     queue.

     <cUser>  Designates the name of the user whose print job definition
     is processed.  The default value designates the current user.

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

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

 Returns

     NNETPJPSRV() returns the name of the print server in the job definition
     <cJob>.

 Description

     NOVELL NET PRINT JOB PRINT SERVER
     A print job definition can contain the name of a print server.  This
     setting is not supported by the Novell capture services.  However, you
     can use the information in conjunction with the CA-Clipper Tools
     functions for job manipulation to set a specified print server as the
     target for a print job  (NNETJSRV()).

     The print server name can be set or queried by calling NNETPJPSRV().  Do
     not pass a value for <cNewServer> to query the server name.  A server
     name can be set by specifying <cNewServer>.  If <cUser> is not the
     current user, access rights for the mail system of the user are
     required.

 Examples

     .  Determine the print server name in the job definition MYJOB:

        ? NNETPJPSRV('MYJOB')

     .  Set the print server name in the job definition MYJOB to
        PSERVER:

        ? NNETPJPSRV('MYJOB', 'PSERVER')

     .  Create the print job, and set the print server of the job
        definition MYJOB as the target server:

        NNETPJCAPF('MYJOB')
        SET PRINTER ON
        ? 'Hello'           // A new job is created
        NNETJSRV('LINEPRINTER', NNETCAPJOB(1), NNETPJPSRV('MYJOB'))
        ? NNETCAPFLU(1)

See Also: NNETCAPJOB() NNETJSRV() NNETPJFSRV() NNETPJQ()

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