TAA Tools
PRTLIBCNT       PRINT LIBRARY COUNT                    TAALICF

The Print Library Count  command prints a one line  summary per library
or  multiple libraries.   The tool  differs from  PRTLIBANL in  that an
API   is  used  to  access   the  object  information  (performance  of
PRTLIBCNT  is  better),  but  member  and  record  information  is  not
provided.

A typical command would be:

             PRTLIBCNT   LIB(*ALLUSR)

This would  print one line per  library for each library  that is saved
by  a SAVLIB LIB(*ALLUSR).  Different sequences  may be achieved by ASP
or the amount of storage (ascending or descending).

The amount of storage shown  and number of objects include the  library
object in QSYS.  The library object is saved with the library.

If  any objects  in  the library  are  locked  or if  the  user has  no
authority  for any objects,  the size of  such objects is  not included
in the  library's total  size and  an asterisk  (*) is  printed in  the
Incmp column.   However, these  objects are  included in the  library's
object count.

Note  that QDOC is  not saved by  LIB value of  *NONSYS or *ALLUSR.   A
special request could be made for QDOC such as:

             PRTLIBCNT   LIB(QDOC)

You  must  be authorized  to the  TAADSPADP  authorization list  to use
PRTLIBCNT.

PRTLIBCNT escape messages you can monitor for
---------------------------------------------

None, but escape messages from based on functions will be re-sent.

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

   LIB           The library  to be summarized.   A list  of up to  300
                 libraries may  be named.   A generic name may  be used
                 for  any library or the  special values *ALL, *NONSYS,
                 or *ALLUSR.    The  value *NONSYS  means  any  library
                 that  would  be  saved   by  the  SAVLIB  LIB(*NONSYS)
                 function.   The value  *ALLUSR means  any library that
                 would be saved  by the  SAVLIB LIB(*ALLUSR)  function.

   OMITLIB       A  list of  up to  300  libraries to  be  omitted.   A
                 generic name  may be entered.   *NONE is  the default.

   LIBTYPE       The  library  type  to  be  processed.    *ALL  is the
                 default.

                 *PROD may be entered  to process only those  libraries
                 with an attribute of PROD.

                 *TEST may  be entered to process  only those libraries
                 with an attribute of TEST.

   ASPSEQ        Whether  to  sequence on  the  ASP  (auxiliary storage
                 pool) of  the library.   *NO  is  the default  meaning
                 the libraries do not appear in ASP sequence.

                 *YES may  be specified  to sequence  on the  ASP.   If
                 *YES  is specified,  the ASP field  is the  major sort
                 field  and  any  sequencing  as  specified  on  STGSEQ
                 occurs within each ASP.

                 *YES cannot be specified if ASPDEVSEQ is *YES.

   ASPDEVSEQ     Whether to  sequence  on the  ASP device  name of  the
                 library.   *NO  is the  default meaning  the libraries
                 do not appear in ASP device name sequence.

                 *YES  may be specified  to sequence on  the ASP device
                 name.  If *YES  is specified, the ASP device  field is
                 the major  sort field and any  sequencing as specified
                 on STGSEQ occurs within each ASP device.

                 *YES cannot be specified if ASPSEQ is *YES.

   STGSEQ        Whether  to  sequence on  the amount  of  storage used
                 for the  library.   *NO  is  the default  meaning  the
                 libraries appear  in name order  (see also  the ASPSEQ
                 parameter).

                 *ASCEND  may be  specified to  sequence on  the amount
                 of storage in ascending order.

                 *DESCEND may be  specified to sequence  on the  amount
                 of storage in descending order.

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

None.

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

The following TAA Tools must be on your system:

     CHKGENERC       Check generic
     CHKGENOBJ       Check generic objects
     CHKIBMLIB       Check IBM library
     CVTLIBCNT       Convert library count
     DUPFILFMT       Duplicate file format
     EDTVAR          Edit variable
     EXTLST          Extract list
     HLRMVMSG        HLL Remove message
     RTVSYSVAL3      Retrieve system value 3
     SNDCOMPMSG      Send completion message
     SNDESCMSG       Send escape message
     SNDSTSMSG       Send status message
     TAAEXC          TAA Execute command

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

None, the tool is ready to use.

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

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

   PRTLIBCNT     *CMD                   TAALICF       QATTCMD
   TAALICFC      *PGM       CLP         TAALICFC      QATTCL
   TAALICFR      *PGM       RPG         TAALICFR      QATTRPG
   TAALICFR2     *PGM       RPG         TAALICFR2     QATTRPG
					

Added to TAA Productivity tools March 1, 1999


Home Page Up to Top