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

     NNETPJMODE([<cJob>],[<cNewMode>],[<cUser>],[<cServer>|
        <nConId>]) --> cMode

     Netware: 2.2 and 3.11

 Arguments

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

     <nNewMode>  Designates a new device mode for <cJob>.  The device
     mode must have an entry in the printer definition file (NET$PRN.DAT) on
     <cServer>.

     <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

     NNETPJMODE() returns the device mode in the job definition <cJob>.

 Description

     NOVELL NET PRINT JOB MODE
     A print job definition can contain the name of a device and a
     corresponding device mode.  The device mode can be set or queried by
     calling NNETPJMODE().  Do not pass a value for <cNewMode>.  A device
     mode can be set to query the device mode by specifying <cNewMode>.  To
     reset a device mode (set to none), the parameter <cNewMode> must contain
     an empty string ("").  If <cUser> is not the current user, access rights
     for the mail system of the user are required.

 Note

     .  The device mode is validated only when it is set.  If the
        device has been modified with NNETPJDEV(), the returned device mode
        can be invalid.

 Examples

     .  Determine the device mode in the job definition MYJOB:

        ? NNETPJMODE('MYJOB')

     .  Set the device mode in the job definition MYJOB to PLAIN:

        ? NNETPJMODE('MYJOB', 'PLAIN')

     .  Reset the device name and the device mode in the job
        definition MYJOB to NONE:

        ? NNETPJDEV('MYJOB', '')
        ? NNETPJMODE('MYJOB', '')

See Also: NNETPJDEV()

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