TAA Tools
SCN2000         SCAN YEAR 2000                         TAASRDO

The Scan Year 2000 command combines the functions of:





and allows a  scan against all source  files in one or  more libraries.

A typical command would be:

            SCN2000       LIB(LIB1 LIB2)

All  source files  would be  determined in  the  two libraries  and the
SCNCLPIF,  SCNRPGCOMP,  SCNOPNQRYF  commands  would  be  run  for  each
source file.  SCNACCPTH would be run for each of the libraries.

Library list implications

The SCNCLPIF  and SCNRPGCOMP  commands  are directed  at source  files.
If an  Externally described  file exists in  the source, an  attempt is
made to obtain the variable definitions by using the library list.

To  gain  the best  benefit of  the tool,  you  should ensure  that the
library list includes the externally described files.

Command parameters                                    *CMD

   LIB           A list of 1  to 40 libraries  may be specified or  the
                 special  value   *ALLNONQ  which   will  process   all
                 libraries that do not begin with the letter Q.

                 The  special value *ALLNONQ2  is the  same as *ALLNONQ
                 with the addition  of the QGPL  and QGPL38  libraries.
                 The use  of these  special values  will not allow  you
                 to  take  full  advantage  of  the  tool  because  any
                 externally  described files must  exist on the library
                 list to be accessed.   See the previous  discussion of
                 library list implications.

   SCNCLPIF      A *YES/*NO  variable for whether  the SCNCLPIF command
                 will be used.  *YES is the default.

   SCNRPGCOMP    A   *YES/*NO  variable  for   whether  the  SCNRPGCOMP
                 command will be used.  *YES is the default.

   SCNACCPTH     A  *YES/*NO   variable  for   whether  the   SCNACCPTH
                 command will be used.  *YES is the default.

   SCNOPNQRYF    A  *YES/*NO   variable  for  whether   the  SCNOPNQRYF
                 command will be used.  *YES is the default.

   VARLEN        The variable  length to be tested.   The default is 6.
                 Both *CHAR  and *DEC  type variables  are tested  for.
                 *DEC type  variables are  only tested  if they have  0
                 decimals.  The value must be between 1 and 256.

   RQDEXTDSC     Determines  whether  any  externally  described  files
                 are required.

                 *NO  is  the  default  which  means  if  an Externally
                 Described file  exists, the  field specifications  are
                 used.    If  an  Externally Described  file  does  not
                 exist  on the library  list, no error  occurs, but the
                 information about some of  the fields may be  missing.

                 If  *YES  is  specified and  an  Externally  Described
                 file  is specified  in the  source,  it must  exist on
                 the library list or an error will occur.

   KEYTYPE       Determines the  key  type  to be  used  on  SCNACCPTH.
                 The default is  *BOTH meaning to check for  both *CHAR
                 and *DEC  type key fields.   Either *CHAR  or *DEC may
                 be  specified  to  limit  the  scan  to  character  or
                 decimal key fields.

   DLTSPLF       A  *YES/*NO  value  that  defaults  to   *YES.    *YES
                 deletes the  spooled file  created if no  members were
                 scanned.    For  example,  the  QCLSRC  file  will  be
                 scanned by  SCNRPGCOMP  and  a spooled  file  will  be
                 output with the  results.  If no RPG  types are found,
                 the spooled file will be deleted.

                 *NO  may  be specified  to  retain  any spooled  files
                 that are output.


The sub tools have restrictions.


The following TAA Tools must be on your system:

     CHKALLOBJ       Check all object authority
     CVTLIBDBF       Convert library data base files
     EDTVAR          Edit variable
     EXTLST          Extract list
     RSNLSTMSG       Resend last message
     SCNACCPTH       Scan access path
     SCNCLPIF        Scan CLP IF
     SCNRPGCOMP      Scan RPG compare
     SNDCOMPMSG      Send completion message
     SNDESCMSG       Send escape message
     SNDSTSMSG       Send status message


None, the tool is ready to use.

Objects used by the tool

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

   SCN2000       *CMD                   TAASRDO       QATTCMD
   TAASRDOC      *PGM       CLP         TAASRDOC      QATTCL

Added to TAA Productivity tools September 1, 1996

Home Page Up to Top