TAA Tools

The  Compare Library  Formats  command compares  one  or more  physical
files in  one library to the  same file names in another  library.  The
comparison  is done  on the  number of  fields, the record  length, and
the level ID.  This can  assist in ensuring files that are  intended to
match have the same format in different libraries.

A typical command would be:


All physical  files in  the From  lib would be  accessed and  a listing
produced  with  one  line  per file.    The  number  of  fields, record
length, and  level  ID of  each  file would  be  compared to  the  same
information  for the  corresponding file  in the  To library.   If  the
information  does not match or  no corresponding file  exists, the file
is flagged.

CMPLIBFMT escape messages you can monitor for

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

CMPLIBFMT Command parameters                          *CMD

   FROMLIB       The From library containing  the physical files to  be

   TOLIB         The To  library containing  the physical  files to  be

   FILE          The name  or generic name of the  file to be compared.
                 *ALL is the default for all files.

   DTLCOMP       A  *YES/*NO  parameter  that  determines  if  a detail
                 comparison will be made if mismatches exist.

                 *YES  is  the  default.    If  a  mismatch  occurs,  a
                 separate  spooled  file  is  output by  the  CMPDBFFMT
                 tool.   This  will  describe each  field in  each file
                 and flag  the  differences.    A  summary  message  is
                 issued of  the total separate  spooled files  that are

                 *NO may  be specified to avoid  the detail comparison.

   OUTPUT        How to  output  the results.    * is  the  default  to
                 display the  spooled file  if the  command is  entered
                 interactively.   The spooled file is  deleted after it
                 is displayed.

                 If  the  command  is  entered in  batch  or  *PRINT is
                 specified, the  spooled file is  output and  retained.




The following TAA Tools must be on your system:

     CHKGENERC       Check generic
     CHKGENOBJ       Check generic object
     CHKOBJ3         Check object 3
     CMPDBFFMT       Compare data base format
     CVTFD           Convert file description
     EDTVAR          Edit variable
     RSNLSTMSG       Resend last message
     RTVFMT          Retrieve format
     RTVSYSVAL3      Retrieve system value 3
     SNDCOMPMSG      Send completion message
     SNDESCINF       Send escape information
     SNDESCMSG       Send escape message
     SNDSTSMSG       Send status message


None, the tool is ready to use.

Objects used by the tool

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

   CMPLIBFMT     *CMD                   TAADBMP       QATTCMD
   TAADBMPC      *PGM       CLP         TAADBMPC      QATTCL
   TAADBMPR      *PGM       RPG         TAADBMPR      QATTRPG

Added to TAA Productivity tools April 15, 2010

Home Page Up to Top