TAA Tools
SCNRPGWRD       SCAN RPG EDIT WORD                     TAARPGT

The Scan  RPG Edit Word  command scans  RPG source for  the use of  all
edit  words or  a specific  edit word.   Both  RPG  and RPG  ILE source
types are supported.

A typical command to scan for all edit word use would be:

             SCNRPGWRD   MBR(*ALL) SRCFILE(QRPGSRC)

To  scan for a specific edit word use,  you would specify the edit word
exactly as it is coded in RPG with the surrounding quotes:

             SCNRPGWRD   MBR(*ALL) SRCFILE(QRPGSRC) +
                           EDTWRD('0 :  :  ')

Either a single  member, generic  members, or all  members in the  file
may be scanned.

The  spooled output  will contain  one line  for each  source statement
found with an edit word which includes:

        - Member name
        - Source sequence number
        - Statement change date
        - First 100 bytes of the source statement

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

   MBR           The  member to be scanned.   Either a single member, a
                 generic name,  or  the  special  value  *ALL  for  all
                 members in a file may be specified.

                 If a generic  name or *ALL is specified,  only the RPG
                 source types  (OPM, ILE, and RPG36)  are checked.  The
                 other types are bypassed.

   SRCFILE       The qualified  file  name of  the  source file.    The
                 file  defaults   to  QRPGSRC.     The  library   value
                 defaults to *LIBL.  *CURLIB may also be used.

   EDTWRD        The  edit  word  to  be  scanned  for.   *ALL  is  the
                 default  meaning that any  edit word use  will cause a
                 statement to be printed.

                 A specific edit word  may be specified.  It  should be
                 entered  with  the  surrounding   quotes  as  it  will
                 appear  in the RPG  output.  A typical  time edit word
                 would be specified as EDTWRD('0 : : ').

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

None.

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

The following TAA Tools must be on your system:

     CHKGENERC       Check generic
     EDTVAR          Edit variable
     HLRMVMSG        HLL Remove message
     RTVMBRLST2      Retrieve member list 2
     RTVSYSVAL3      Retrieve system value 3
     SNDCOMPMSG      Send completion message
     SNDESCMSG       Send escape message
     SNDSTSMSG       Send status message

Implementation
--------------

None, the tool is ready to use.

Objects used by the tool
------------------------

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

   SCNRPGWRD     *CMD                   TAARPGT       QATTCMD
   TAARPGTC      *PGM       CLP         TAARPGTC      QATTCL
   TAARPGTR      *PGM       RPG         TAARPGTR      QATTRPG
					

Added to TAA Productivity tools September 1, 1996


Home Page Up to Top