TAA Tools
SCNTAATOOL      SCAN ALL TAA SOURCE FILES                  TAATOLD

*****  Note.   SCNTAATOOL  provides a  similar  function as  FNDSTRPDM.
SCNTAATOOL  uses the  output  from the  TAA tool  SCNSRC  which differs
from FNDSTRPDM.  You may prefer to use FNDSTRPDM instead.

The  SCNTAATOOL command  provides a  simple method  of scanning  all or
some source files  in TAATOOL or  any other library.   Only the  source
file  names used  by  the TAA  tools  in TAATOOL  are  scanned.   These
include:

            QATTC          QATTPL1
            QATTCMD        QATTRPG
            QATTCL         QATTSQL
            QATTDDS        QATTSRV
            QATTHTML       QATTUIM
            QATTINFO

To  scan the  library TAATOOL for  all use  of the  argument EDTVAR you
would specify:

         SCNTAATOOL   ARGUMENT(EDTVAR)

The SCNTAATOOL command submits a job to batch to perform the scan.

The SCNTAATOOL command  uses the  SCNSRC command from  TAATOOL to  scan
each source file.   A listing is  printed for each TAATOOL  source file
found in the specified library.

An  option on the command  exists to specify the  source types that you
want to scan against.  For example, you could have specified:

         SCNTAATOOL   ARGUMENT(EDTVAR) TYPE(*CL *RPG)

This would  have  caused a  scan  against  only the  files  QATTCL  and
QATTRPG.

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

   ARGUMENT      Up to  a 20 character  value to be  scanned for.   You
                 may  need to surround  the value  in quotes  and enter
                 in  upper case  depending on  the value.   For typical
                 names (e.g.   EDTVAR),  the  value may  be entered  in
                 lower case  without quotes.   Trailing blanks  will be
                 trimmed off the argument.

   LIB           The  library name which  contains the  source files to
                 be scanned.   Only the source file  names used by  the
                 TAA  tools in  TAATOOL are  scanned.   The default  is
                 TAATOOL.

   JOBD          The  qualified job  description to  be used  to submit
                 the job  to  batch.   The  default  is  *USRPRF  which
                 means the  JOBD from  the user  profile is  used.   If
                 the  SCNTAATOOL  command is  executed  in batch,  this
                 parameter is ignored.

   TYPE          The  source type that  you want to  scan.  The default
                 is *ALL, meaning  all source files.   You may  specify
                 one  or more of  a list  of source  types.   For types
                 such  as *DDS,  you  may specify  *DDS, *PF,  *LF etc.
                 If more than  one request  exists for  the same  file,
                 only one  scan will occur.   The scan for a  type such
                 as  *PF causes a scan  of the entire  QATTDDS file and
                 not just the *PF types.

                 The following are  the list  of source  types and  the
                 associated files:

                          *C             QATTC
                          *CL            QATTCL
                          *CLLE          QATTCL
                          *CLP           QATTCL
                          *CMD           QATTCMD
                          *DDS           QATTDDS
                          *PF            QATTDDS
                          *LF            QATTDDS
                          *PRTF          QATTDDS
                          *DSPF          QATTDDS
                          *HTML          QATTHTML
                          *TXT           QATTINFO
                          *REXX          QATTPL1
                          *RPG           QATTRPG
                          *SQL           QATTSQL
                          *BND           QATTSRV
                          *PNLGRP        QATTUIM

   TRANSLATE     A *YES/*NO option  that defaults to *NO.   *YES causes
                 the  source statement to  be translated to  upper case
                 before scanning for the argument.

   PRTFOLSTM     A  *YES/*NO option that  defaults to *NO.   *YES means
                 that if  a  hit  is found  on  a statement,  the  next
                 statement  will be  printed whether  it has  a  hit or
                 not.

                 The  purpose of  the  *YES option  is for  a situation
                 such as when you are  scanning for a command name  and
                 want to  determine whether  a keyword  has been  used.
                 If  the  command  is  continued  to  a  second  source
                 statement, the  keyword  you  may  want  to  look  for
                 could be on the  second line.  After the  spooled file
                 is  output,  you  can  use  DSPSPLF  to scan  for  the
                 keyword.

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

The following TAA Tools must be on your system:

      EXTLST        Extract list
      SCNSRC        Scan a source file
      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
   ------        -----      ---------      ----------     -----------

   SCNTAATOOL    *CMD                      TAATOLD        QATTCMD
   TAATOLDC      *PGM          CLP         TAATOLDC       QATTCL
   TAATOLDC2     *PGM          CLP         TAATOLDC2      QATTCL

The CPP is TAATOLDC which submits the program TAATOLDC2 to batch if the
request is entered interactively.
					

Added to TAA Productivity tools April 1, 1995


Home Page Up to Top