VMS Help  —  PRINT  Examples
    1.$ PRINT/QUEUE=LPB0/COPIES=10/AFTER=20   RESUME
        Job RESUME (queue LPB0, entry 239) holding until 14-DEC-2001 20:00

      The PRINT command in this example queues 10 copies of the file
      RESUME.LIS to printer LPB0, but requests that the copies not be
      printed until after 8:00 P.M.

    2.$ PRINT  THETA.TXT + BETA/FLAG + GAMMA/FLAG + *.LIS/FLAG
        Job THETA (queue SYS$PRINT, entry 237) pending

      The PRINT command in this example submits the files THETA.TXT,
      BETA.TXT, GAMMA.TXT, and the highest versions of all files with
      the file type .LIS as a single print job. Flag pages separate
      the individual files. Notice that the file type for BETA and
      GAMMA is .TXT, the file type of the first file in the list.

    3.$ PRINT/LOWERCASE   THETA.TXT/COPIES=2, -
      _$BETA.DOC/COPIES=3
      Job THETA (queue SYS$PRINT, entry 240) pending

      The print job queued by the PRINT command in this example
      consists of two copies of THETA.TXT followed by three copies
      of BETA.DOC. This job must be printed on a printer that can
      print lowercase letters. If no such printer is available, the
      job waits in the queue.

    4.$ PRINT/JOB_COUNT=3   THETA.TXT,BETA/NOIDENTIFY

      The PRINT command in this example concatenates the files
      THETA.TXT and BETA.TXT into a single print job and prints three
      copies of the job. The /NOIDENTIFY qualifier requests that the
      job entry number and queue name not be displayed.

    5.$ COPY REPORT.MEM NODE3::
      $ PRINT/REMOTE NODE3::REPORT.MEM

      In this example, the two commands are entered at a node other
      than NODE3. The COPY command copies the file REPORT.MEM from
      the current node to the NODE3 node. The PRINT command queues
      the file REPORT.MEM located on the NODE3 node for printing at
      the NODE3 node. The job entry number and queue name are not
      displayed when the /REMOTE qualifier is used.

    6.$ PRINT/HOLD   MASTER.DOC
        Job MASTER (queue SYS$PRINT, entry 540) holding
         .
         .
         .
      $ SET ENTRY 540/RELEASE

      The PRINT command in this example queues a copy of the file
      MASTER.DOC to the default printer in a hold status. Later,
      the SET ENTRY command releases the hold status on the file and
      makes it available for printing.

    7.$ PRINT TEST.TXT
      Job TEST.TXT (queue SYS$PRINT, entry 867) started on LPA0
      $ SHOW ENTRY '$ENTRY'
      Entry     Jobname     Username     Blocks    Status
      -----     -------     --------     ------    ------
        867     TEST.TXT    Nisslert        135    Printing
                Submitted  10-DEC-2001 11:07 /FORM=DEFAULT /PRIORITY=100
                File: $5$DUA174:[NISSLERT]TEST.TXT;3

      The PRINT command in this system example queues a copy of the
      file TEST.TXT to the default printer. It also creates the local
      symbol $ENTRY to store the job entry number. The SHOW ENTRY
      command requests a display of the entry using the symbol $ENTRY
      to identify it.

    8.$ PRINT/RETAIN=UNTIL=1 MYFILE.DAT
         .
         .
         .
      $ SHOW QUEUE DOC$LN03
      Server queue DOC$LN03, stopped, on NEWTON::, mounted form DEFAULT
      Entry    Jobname    Username  Blocks  Status
      -----    -------    --------  ------  ------
        436    MYFILE     MIGDAL         8  Retained until 11-DEC-2001 16:56
            %JBC-F-JOBABORT, job aborted during execution
              Completed  11-DEC-2001 15:56 on queue DOC$LN03

      The SHOW QUEUE display in this system example includes the date
      and time at which a retained job completed and the queue on
      which it executed. The user set job retention to be one hour
      after job completion. Depending on the queue's job retention
      policy, the job might be deleted from the queue at 16:56.

    9. PRINT /PARAMETERS=AAA=123

      This command passes the parameter AAA=123 to the print
      symbiont. The interpretation of the parameter is dependent
      on the symbiont.

    10$ PRINT /PARAMETERS=(ddd,"e,(F=(3,4),g),h)",iii)

      This command passes three parameters to the print symbiont:
      DDD, "e,(F=(3,4),g),h)", and III. The use of the quotes around
      the second parameter allows the use of nested parentheses,
      commas, and the preservation of alphabetic case. This parameter
      value is perfectly acceptable to the PRINT command, even though
      it is apt to subsequently be rejected by the print symbiont.

    11.PRINT /PARAMETERS=("N,O,P,Q,R,S,T",U,V)

      This command passes three parameters to the print symbiont:
      "N,O,P,Q,R,S,T", U, and V. Depending on the parsing
      capabilities of the symbiont and the length of the parameters
      (each parameter is limited to 255 characters), this may be a
      workaround to the limitation of eight parameters.
Close Help