TAA Tools
CHGSRCTYP      CHANGE SOURCE TYPE                         TAASRCN

The Change  Source Type  command is used  to make  mass changes  of the
source type  field in a source file.   For example, if you  have a file
where  some or  all of the  members are labeled  as type  RPG38 and you
want to change them, to RPG you would issue the following command:

        CHGSRCTYP     SRCFILE(QRPGSRC) FROMTYPE(RPG38) TOTYPE(RPG)

This is a slow running command and should be submitted to batch.

The command is intended to  assist in the specific cases where  a large
number of  source types  are being  converted to the  i5/OS types.   If
only  a few members  need to  be changed, you  should use  the SEU list
function.

The command uses the  DSPFD outfile to read  the members in the  source
file.  The members with the specified source type are processed by:

  **   Using  CPYSRCF to  copy the  member  to the  file TAATEMPSRC  in
       QTEMP.

  **   Removing the original member.

  **   Copying the source data back from TAATEMPSRC with CPYSRCF.

Members  without any  data are  correctly processed  (the type  will be
changed).  The source last date/time changed will be modified.

If a failure occurs in the middle  of the process, one of your  members
may be in TAATEMPSRC in  QTEMP and may need to be  copied back manually
with CPYSRCF.

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

   FROMFILE      The qualified  file name to  be changed.   The library
                 defaults to *LIBL.

   FROMTYPE      The existing type to select.

   TOTYPE        The  type  to change  to.   Any characters  but blanks
                 are valid.

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
   ------        -----      ---------      ----------     -----------

   CHGSRCTYP     *CMD                      TAASRCN        QATTCMD
   TAASRCNC      *PGM          CLP         TAASRCNC       QATTCL
					

Added to TAA Productivity tools April 1, 1995


Home Page Up to Top