/sys$common/syshlp/helplib.hlb
SUBMIT, Examples

 *Conan The Librarian (sorry for the slow response - running on an old VAX)

    1.$ SUBMIT /PARAMETERS=(TXT,DOC,MEM) BACKUP, AVERAGE, RUNMASTER
        Job BACKUP (queue SYS$BATCH, entry 416) pending

      In this example, the SUBMIT command enters three command
      procedures in a single job. The job is given three parameters:
      P1 is equated to the string TXT, P2 to the string DOC, and P3
      to the string MEM. After the procedure BACKUP.COM is executed,
      the procedures AVERAGE.COM and RUNMASTER.COM are executed.

    2.$ SUBMIT/NAME=BATCH24/HOLD TESTALL
        Job BATCH24 (queue SYS$BATCH, entry 467) holding

      In this example, the SUBMIT command enters the procedure
      TESTALL.COM as a batch job and specifies that the job be held
      for later processing. The job is not released until the SET
      ENTRY/RELEASE command is entered. The /NAME qualifier requests
      that the batch job be identified as BATCH24.

    3.$ SUBMIT TEST.COM
        Job TEST (queue SYS$BATCH, entry 493) pending
      $ BATCH_JOB = $ENTRY
         .
         .
         .
      $ DELETE/ENTRY='BATCH_JOB'

      In this command sequence, the $ENTRY symbol is used to refer to
      a particular job in the queue file. The SUBMIT command creates
      a batch job to run the command procedure TEST.COM. In addition,
      the SUBMIT command defines $ENTRY as a local symbol whose
      value is the entry number of the job (493 in this example).
      The second statement assigns the value $ENTRY to the local
      symbol BATCH_JOB. The last line of the example deletes the job
      by using the symbol BATCH_JOB to identify it.

    4.$ DEFINE JUNE WORKZ:[SCHREURS]ANNUAL_REPORT.COM
      $ SUBMIT JUNE
      Job ANNUAL_REPORT (queue SYS$BATCH, entry 229) started on ZOO_BATCH

      In this example, the logical name JUNE is created and equated
      to ANNUAL_REPORT.COM with the DEFINE command. Using the logical
      name JUNE, the user submits ANNUAL_REPORT.COM to the batch
      queue. Note that the system translates the logical name JUNE
      to ANNUAL_REPORT.COM before ANNUAL_REPORT.COM is submitted
      to the batch queue. Also, the log file produced is named
      ANNUAL_REPORT.COM rather than JUNE.COM.

      Note also that the job is submitted to the generic queue
      SYS$BATCH, but runs on the execution queue ZOO_BATCH.
  Close     HLB-list     TLB-list     Help  

[legal] [privacy] [GNU] [policy] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.