TAA Tools
RTVSBMJOB       RETRIEVE SUBMITTED JOB                 TAAJOCJ

The Retrieve  Submitted Job command  returns the job  identification of
the  job  that was  submitted  by  a SBMJOB  command.   RTVSBMJOB  must
immediately  follow a  SBMJOB command so  that the  system message sent
by SBMJOB can  be properly  retrieved.  RTVSBMJOB  is helpful when  the
specific submitted job must be referred to at a later point.

A typical series of commands would be:

             DCL        &JOB *CHAR LEN(10)
             DCL        &USER *CHAR LEN(10)
             DCL        &NBR *CHAR LEN(6)
              .
             SBMJOB     ...
             RTVSBMJOB  JOB(&JOB) USER(&USER) NBR(&NBR)

Command parameters                                    *CMD
------------------

   JOB           The  job name  that was  used for  the  submitted job.
                 This  is an optional  return value.  If  used, it must
                 be declared as *CHAR LEN(10).

   USER          The user name  that was  used for  the submitted  job.
                 This is  an optional return value.   If used,  it must
                 be declared as *CHAR LEN(10).

   NBR           The  job number that  was used for  the submitted job.
                 This is an optional  return value.   If used, it  must
                 be declared as *CHAR LEN(6).

Restrictions
------------

Because the  command returns  variables, it may  only be  used in  a CL
program.

Prerequisites
-------------

The following TAA Tools must be on your system:

     SNDESCMSG       Send escape message

Implementation
--------------

None, the tool is ready to use.

Objects used by the tool
------------------------

   Object        Type    Attribute      Src member    Src file
   ------        ----    ---------      ----------    ----------

   RTVSBMJOB     *CMD                   TAAJOCJ       QATTCMD
   TAAJOCJC      *PGM       CLP         TAAJOCJC      QATTCL
					

Added to TAA Productivity tools November 1, 1997


Home Page Up to Top