TAA Tools
CMPLVLID        COMPARE LEVEL ID                       TAADBKW

The Compare Level  ID command compares  level IDs for one,  generic, or
*ALL files  in one library to  another.  An escape  message is optional
if  differences exist.  CMPLVLID may  be helpful for situations such as
when a file  in a production  library must match the  same file in  the
test library.

A typical command would be:

             CMPLVLID      FROMFILE(LIBA/*ALL) TOFILE(LIBB/*FROMFILE)

All  files in  LIBA would  be compared  to the  corresponding  files in
LIBB  to determine if the level  IDs were the same.   A summary spooled
file  would be  produced,  but  would  be  deleted  if  no  differences
occurred.  The listing would be retained if any differences exist.

Differences could be:

  **   The level IDs differ.

  **   The corresponding file does not exist.

  **   Error when retrieving from the file.

If  an  escape   message  is  desired  for   any  differences,  specify
ESCAPE(*YES).

When  generic or *ALL  files are requested,  there is no  check made to
determine if a file in the To  file does not have a corresponding  file
in the From file.

CMPLVLID escape messages you can monitor for
--------------------------------------------

      TAA9895    Differences exist (Optional)

Escape messages from based on functions will be re-sent.

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

   FROMFILE      The qualified  name of the  From file to  be compared.
                 A  single file, a  generic file  name, or *ALL  may be
                 specified.

                 The  library value  defaults to  *LIBL.   *CURLIB or a
                 specific library may be named.

                 A  specific  library  must  be  named  if  *ALL  or  a
                 generic name is used.

   TOFILE        The  qualified name  of the  To file  to  be compared.
                 The  default is *FROMFILE  meaning the  value from the
                 FROMFILE parameter.   *FROMFILE  must be  used if  the
                 From file is *ALL or a generic name.

                 The library  value defaults  to *LIBL.   *CURLIB or  a
                 specific library may be named.

                 A  specific  library must  be  named  if *FROMFILE  is
                 used and the FROMFILE is *ALL or a generic name.

   ESCAPE        A  *YES/*NO  value  for  whether  to  send  an  escape
                 message if differences exist.

                 *NO  is the  default  meaning the  completion  message
                 will describe whether differences exist.

                 *YES  may be  specified  to cause  the  TAA9895 escape
                 message to be sent if differences exist.

   DLTSPLF       A  *YES/*NO value  for whether  to delete  the spooled
                 file if no differences exist.

                 *YES is the default  to delete the spooled file  if no
                 differences   exist.    The   spooled  file   will  be
                 retained if differences do exist.

                 *NO  is the default to retain  the spooled file in all
                 cases.

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

None.

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

The following TAA Tools must be on your system:

     CHKGENERC       Check generic
     CVTLIBDBF       Convert library data base files
     DUPTAADBF       Duplicate TAA data base file
     RTVFMT          Retrieve format
     RTVSYSVAL3      Retrieve system value 3
     SNDCOMPMSG      Send completion message
     SNDESCINF       Send escape information
     SNDESCMSG       Send escape message
     SNDSTSMSG       Send status message

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

None, the tool is ready to use.

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

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

   CMPLVLID      *CMD                   TAADBKW       QATTCMD
   TAADBKWC      *PGM       CLP         TAADBKWC      QATTCL
   TAADBKWC2     *PGM       CLP         TAADBKWC2     QATTCL
   TAADBKWR      *PGM       RPG         TAADBKWR      QATTRPG
					

Added to TAA Productivity tools November 15, 2005


Home Page Up to Top