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>nnetjtxt()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETJTXT()
 Determines if the contents of a job file are interpreted as text or a binary
 byte sequence
------------------------------------------------------------------------------
 Syntax

     NNETJTXT(<cQueue>,<nJob>,[<lNewMode>],[<cServer>|
        <nConId>]) --> lMode

     Netware: 2.2 and 3.11

 Arguments

     <cQueue>  Designates the name of the print queue that is accessed.

     <nJob>  Designates the job number of the job that is processed in
     <cQueue>.

     <lNewMode>  Designates an optional parameter that indicates if
     <nJob> contains text (.T.) or binary data (.F.).

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

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

 Returns

     NNETJTXT() returns .T. if <nJob> is a text job.  The value .F. indicates
     a binary job or an error.  By calling the function NNETERROR(), you can
     determine if the return value .F. is the result of an error.

 Description

     NOVELL NET JOB TEXT
     The Queue Management System (QMS) differentiates between text and binary
     jobs.  NNETJTXT() allows you to query or set the mode for <nJob>.

 Examples

     .  Determine the mode for the second job in the queue
        LINEPRINTER:

        nJob=BIN2I(SUBSTR(NNETJLIST('LINEPRINTER'),3,2))
        IF NNETJTXT('LINEPRINTER', nJob)
        ? 'Text job'
        ELSE
        ? 'Binary job'
        ENDIF

     .  Define the second job of the queue LINEPRINTER as a text job:

        nJob=BIN2I(SUBSTR(NNETJLIST('LINEPRINTER'),3,2))
        NNETJTXT('LINEPRINTER', nJob, .T.)

See Also: NNETJTABS()

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