TAA Tools
RTVJOBSPLC        RETRIEVE JOB SPOOL COUNT             TAAJSPL

The Retrieve Job Spool Count command retrieves the number of spooled
files that a job has created over its lifetime.  This includes those
spooled files that may be in FIN state.  This can be used to compare
against the QMAXSPLF system value so that long running jobs can be
ended and restarted as they approach this value.

A typical command would be entered as:

        RTVJOBSPLC JOB(jobnbr/jobuser/jobname) SPLCNT(&SPLCNT)

The number of spooled files created is returned in the variable named
in the SPLCNT parameter.

This is an efficient command that uses the QUSLSPL API.

Escape messages sent by system APIs will be re-sent.

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

   JOB           The qualified job name to be examined or * for the
                 current job.

   SPLCNT        The name of a *DEC (5 0) CL variable that will
                 contain the count.  The maximum is 99,999 even if
                 the job's spooled file count exceeds that.


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
   ------        ----        ---------      ----------    ----------

   RTVJOBSPLF    *CMD                       TAAJSPL       QATTCMD
   TAAJSPLC      *PGM           CLLE        TAAJSPLC      QATTCL

   TAAJSPLR      *PGM           RPGLE       TAAJSPLR      QATTRPG

Structure
---------

RTVJOBSPLF  Cmd
   TAAJSPLC   CLLE pgm
     TAAJSPLR   RPGLE pgm
					

Added to TAA Productivity tools May 15, 2021


Home Page Up to Top