TAA Tools

The Copy Data Base  Source command copies PF and LF  source types (plus
PF38  and LF38)  from one  source file  to another.   A  generic member
name  may be specified.   The system  CPYSRCF command does  not allow a
copy by source type.

A typical command would be:

             CPYDBFSRC    MBR(ABC*) FROMFILE(xxxx) TOFILE(yyy)

All Physical and  Logical file source named  ABC would be copied  using
the system command CPYSRCF.

If  a  member  being copied  already  exists  in  the  To file,  it  is
replaced.  If a member being copied does not exist, it is added.

CPYDBFSRC escape messages you can monitor for

      TAA9893    No members in the From file or none by the mbr name

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

Command parameters                                    *CMD

   FROMMBR       The  member to be  copied.  A specific  member name, a
                 generic member  name, or  the special  value *ALL  may
                 be used.

   FROMFILE      The qualified name  of the source file  containing the
                 members to  be copied.  The  library value defaults to
                 *LIBL.  *CURLIB may also be used.

   TOFILE        The qualified  name of  the source  file to  copy  the
                 members  to.   The library  value  defaults to  *LIBL.
                 *CURLIB may also be used.




The following TAA Tools must be on your system:

     CHKOBJ3         Check object 3
     EDTVAR          Edit variable
     RTVDBFA         Retrieve data base file attributes
     RTVMBRLST       Retrieve member list
     SNDCOMPMSG      Send completion message
     SNDESCMSG       Send escape message


None, the tool is ready to use.

Objects used by the tool

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

   CPYDBFSRC     *CMD                   TAADBJO       QATTCMD
   TAADBJOC      *PGM       CLP         TAADBJOC      QATTCL

Added to TAA Productivity tools February 1, 2001

Home Page Up to Top