CMPMBRD COMPARE MEMBER DESCRIPTION TAADBNE |
The Compare Member Description command compares attributes of one,
generic, or all members (either data or source) in two different
files. Only the member text, source type, number of records, number
of deleted records, and 'share' attribute are compared. Unmatched
member names in the To file are flagged. Unmatched member names in
the From file may be optionally flagged. CMPMBRD may be helpful when
ensuring member attributes are identical in two files.
If a specific or generic member name is specified, only the members
matching the name are checked.
A typical command would be:
CMPMBRD FROMFILE(xxx) TOFILE(yyy) MBR(*ALL)
A listing would be output with one line per member in the From file.
If differences exist, additional lines would be listed with both the
From value and To value for each member. Any members that exist in
the From file and not the To file would be flagged. Because the
default is to check for the inverse condition, any members in the To
file that do not exist in the From file would be flagged.
Only the following values are compared:
- Member text
- Source type (if any)
- Number of active records
- Number of deleted records
- SHARE attribute
CMPMBRD escape messages you can monitor for
--------------------------------------------
TAA9891 Differences exist if OUTPUT(*PRINT)
Escape messages from based on functions will be re-sent.
CMPMBRD Command parameters *CMD
--------------------------
FROMFILE The qualified name of the From file. The library
value defaults to *LIBL. A specific library or
*CURLIB may also be used.
TOFILE The qualified name of the To file. The default is
*FROMFILE meaning the same name as the From file in
which case a different library must be named. The
library value defaults to *LIBL. A specific library
or *CURLIB may also be used.
MBR The member name or generic name to be compared.
*ALL is the default meaning all members would be
compared.
SAMEMBRS A *YES/*NO parameter for whether to ensure the same
members exist in both files.
*YES is the default to ensure the same members.
*NO may be specified to prevent checking.
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.
Restrictions
------------
None.
Prerequisites
-------------
The following TAA Tools must be on your system:
CHKDBFMBR Check data base file member
CVTMBRLST Convert member list
EDTVAR Edit variable
RSNLSTMSG Resend last message
RTVDBFA Retrieve data base file attributes
RTVSYSVAL3 Retrieve system value 3
SNDCOMPMSG Send completion message
SNDESCINF Send escape information
SNDESCMSG Send escape message
Implementation
--------------
None, the tool is ready to use.
Objects used by the tool
------------------------
Object Type Attribute Src member Src file
------ ---- --------- ---------- ----------
CMPMBRD *CMD TAADBNE QATTCMD
TAADBNEC *PGM CLP TAADBNEC QATTCL
TAADBNEC2 *PGM CLP TAADBNEC2 QATTCL
TAADBNER *PGM RPG TAADBNER QATTRPG
|
Added to TAA Productivity tools July 15, 2011