TAA Tools
CPYNEWSRCM      COPY NEW SOURCE MEMBER                 TAASRFP

The Copy  New  Source Member  command merges  members  from one  source
file to  another.  A specific member, a  generic member, or all members
may  be specified.   If the member in  the From file  does not exist in
the To  file,  it is  copied to  the  To file.   If  it  exists, it  is
flagged.  A listing always occurs.

A typical command would be:

             CPYNEWSRCM FROMFILE(ABC/QCLSRC) TOFILE(DEF/QCLSRC)

Because the  default for the MBR  parameter is *ALL,  all members would
be  read from  the From  file.   If the  corresponding member  does not
exist in the To  file, the member  would be copied to  the To file.   A
listing would be displayed.

CPYNEWSRCM escape messages you can monitor for
----------------------------------------------

      TAA9895    Some error occurred.
                   Only occurs if used in batch or with OUTPUT(*PRINT)

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

CPYNEWSRCM Command parameters                         *CMD
-----------------------------

   FROMFILE      The  qualified name  of  the From  source  file.   The
                 library  value defaults to *LIBL.   A specific library
                 or *CURLIB may also be used.

   TOFILE        The qualified  name  of  the  To  source  file.    The
                 library value defaults  to *LIBL.  A  specific library
                 or *CURLIB may also be used.

   MBR           The  member name to  be copied.   The default  is *ALL
                 for  all members  in the  From file  to be considered.
                 A single member or a generic name may be entered.

                 A member  is only copied  to the To  file if the  name
                 of the From member does not exist in the To file.

   OUTPUT        How  to output  the  results.   *  is  the default  to
                 display  the spooled  file if  the command  is entered
                 interactively.  If  the display  is ended with  F3/F12
                 or the  Enter key, the  spooled file is  deleted after
                 it  is displayed.   To  retain  the spooled  file, you
                 may use the the  System Request 'Cancel' function  and
                 the spooled file will exist in a HLD status.

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


Restrictions
------------

You  must have  *USE authority to  the From file  and *CHANGE authority
to the To file.

The tool deletes and re-creates the MBRLSTP file in QTEMP.

Prerequisites
-------------

The following TAA Tools must be on your system:

     CHKOBJ3         Check object 3
     CVTMBRLST       Convert member list
     EDTVAR          Edit variable
     RSNLSTMSG       Resend last message
     RTVDBFA         Retrieve data base file attributes
     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
   ------        ----    ---------      ----------    ----------

   CPYNEWSRCM    *CMD                   TAASRFP       QATTCMD
   TAASRFPC      *PGM       CLP         TAASRFPC      QATTCL
   TAASRFPR      *PGM       RPG         TAASRFPR      QATTRPG
					

Added to TAA Productivity tools April 15, 2013


Home Page Up to Top