DSPDUPCMD DISPLAY DUPLICATE COMMAND TAACMEV |
Display Duplicate Command is intended to check if duplicate command
names exist in two libraries or in one library and the rest of the
system. Having duplicate command names can be an integrity or
security exposure. The typical uses would be to ensure your user
command names are not found in either QSYS or TAATOOL.
*ALLOBJ authority is required if the FROMLIB value requests to run
over all user libraries.
A typical command would be:
DSPDUPCMD FROMLIB(*ALLUSR) TOLIB(QSYS)
This would find all commands in user libraries (including TAATOOL)
and check if the same name also exists in QSYS.
Another typical command would be:
DSPDUPCMD FROMLIB(*NONTAA) TOLIB(TAATOOL)
This would find all commands in user libraries (excluding TAATOOL)
and check if the same name also exists in TAATOOL. If a TAA command
library exists other than TAATOOL, it is also excluded by the *NONTAA
request.
DSPDUPCMD escape messages you can monitor for
----------------------------------------------
None. Escape messages from based on functions will be re-sent.
Command parameters *CMD
------------------
FROMLIB The library to get the list of commands from that
should be checked to see if the same name exists in
the TOLIB.
The special value *ALLUSR may be entered to check
against all user libraries. This includes the
TAATOOL library.
The special value *NONTAA may be entered to find all
commands in all user libraries excluding the TAATOOL
library. If a TAA command library has been
specified, it is also excluded. You may use
DSPTAALIC to determine if a command library exists
other than TAATOOL. If so, it means that the TAA
commands exist in both the TAATOOL library and a
separate library for TAA commands.
If FROMLIB is *ALLUSR or *NONTAA, you must have
*ALLOBJ special authority.
TOLIB The To library where the commands from the From
library will be checked against. The default is
QSYS.
CMD The Command to be checked. *ALL is the default for
all commands in the From library. A single command
or a generic command name may also be entered.
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
------------
You must have *ALLOBJ special authority to specify a FROMLIB value of
*ALLUSR or *NONTAA.
Prerequisites
-------------
The following TAA Tools must be on your system:
CHKALLOBJ Check *ALLOBJ special authority
CHKOBJ3 Check object 3
EDTVAR Edit variable
RSNLSTMSG Resend last message
RTVSYSVAL3 Retrieve system value 3
SNDCOMPMSG Send completion message
SNDESCINF Send escape information
SNDESCMSG Send escape message
SNDSTSCNT Send status count
SNDSTSMSG Send status message
Implementation
--------------
None, the tool is ready to use.
Objects used by the tool
------------------------
Object Type Attribute Src member Src file
------ ---- --------- ---------- ----------
DSPDUPCMD *CMD TAACMEV QATTCMD
TAACMEVC *PGM CLP TAACMEVC QATTCL
TAACMEVR *PGM RPG TAACMEVR QATTRPG
|
Added to TAA Productivity tools June 15, 2004