DUPSRC DUPLICATE SOURCE MEMBER TAASRCU |
The Duplicate Source Member command is a front end to CPYSRCF with
slightly different prompts to simplify copying source.
A typical command to duplicate a member in the same file would be:
DUPSRC FROMMBR(ABC) TOMBR(DEF) FROMFILE(*CLP)
This would duplicate the ABC member into the DEF member in the file
QCLSRC. By default, the member DEF must not exist.
Command parameters *CMD
------------------
FROMMBR The member name in the FROMFILE.
TOMBR The member name in the TOFILE. An * may be used to
mean the same name as the FROMMBR.
FROMFILE The qualified name of the 'from file'. Special
values such as *CL, *RPG etc. may be used to
represent the standard source file names (QCLSRC,
QRPGSRC, etc.). The library qualifier defaults to
*LIBL.
TOFILE The qualified name of the 'to file'. The default is
*FROMFILE meaning the member is added to the same
file as the FROMFILE parameter. If a specific
library is named (rather than *LIBL), the library
specified is used. If *FROMFILE is specified and
*LIBL is used as the TOFILE library, the FROMFILE
library value is used.
REPLACE A *YES/*NO value. The default is *NO which means
the TOMBR must not exist. *YES must be specified to
replace the data in an existing member.
TEXT The text description of the TOMBR. *DFT is the
default which causes: 1) If a member is added, the
text comes from the member named for FROMMBR 2) If a
member is replaced, the text of the existing member
is not changed.
If a text description is entered, it will be used
for the TOMBR whether it exists or not.
Restrictions
------------
None.
Prerequisites
-------------
The following TAA Tools must be on your system:
EDTVAR Edit variable
SNDCOMPMSG Send completion message
SNDESCMSG Send escape message
Implementation
--------------
None, the tool is ready to use.
Objects used by the tool
------------------------
Object Type Attribute Src member Src file
------ ---- --------- ---------- ----------
DUPSRC *CMD TAASRCU QATTCMD
TAASRCUC *PGM CLP TAASRCUC QATTCL
|
Added to TAA Productivity tools April 1, 1995