TAA Tools
CHKSPCSPE       CHECK USER SPACE SPELLING              TAASPCU

The Check User  Space Spelling command  checks for misspelled  words in
the first  32,000 bytes of  a user space.   The data in  the user space
would  be  considered as  a string  with  blanks separating  the words.
The  dictionary  supplied  by   TAA  is  used  by  default.     Special
dictionaries may  be named.  See  the discussion with  the TAADCT tool.

2000  bytes segments are handled.  If  a word splits over two segments,
it will probably be considered an error.

A typical command would be:

             CHKSPCSPE   USRSPC(xxx)

The first 32,000  bytes of the  user space would  be checked using  the
TAADFT dictionary.   One line would be  listed for each word  not found
in  the dictionary.   If any words  are listed, the  spooled file would
be displayed by default.

No indication  of  where in  the  user space  the  bad words  exist  is
shown.  Use DSPUSRSPC and  the scan value field (with F16)  to scan for
where the words exist.

If  no  errors  were found,  the  command  completes  normally and  the
spooled file would be deleted.

CHKSPCSPE escape messages you can monitor for
---------------------------------------------

      TAA9893    One or more words in error were found.

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

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

   USRSPC        The  qualified  name  of  the  *USRSPC  object  to  be
                 checked.   The library  value  defaults to  *LIBL.   A
                 specific library or *CURLIB may also be used.

   ERRACTION     How  to  handle  spelling  errors.    If  no  spelling
                 errors exist, the spooled file is deleted.

                 *DISPLAY  is the default to  display the spooled file.
                 The spooled file is deleted after it is displayed.

                 *ESCAPE may be specified  to send the TAA9893  message
                 as an escape type.  The spooled file is retained.

                 *COMPLETION may  be specified to receive  a completion
                 message.  The spooled file is retained.

   DICT          The  name of a specific  dictionary to be  used.  *DFT
                 is the  default in  which  case the  DCTARA  parameter
                 takes precedence.

                 A specific  dictionary name may  be used along  with a
                 library  qualifier.    If  a  specific  dictionary  is
                 named, DCTARA(*DFT) must be used.

   DCTARA        An   optional   parameter  that   allows  a   list  of
                 dictionaries to  be specified  by naming  a data  area
                 in  library  TAADCT  that  contains  the  list.    The
                 default  is *DFT.   The  list of dictionaries  must be
                 entered according to  the CRTDCTARA  TAA Tool and  the
                 data area  containing the  dictionaries must  exist in
                 the  TAADCT  library.   Up  to 8  dictionaries  may be
                 named in the data area.

                 If *DFT is specified, the following rules exist:

                 1) If the  library TAADCT does  not exist, the  TAADFT
                 dictionary in TAATOOL is used.

                 2) If the  TAADCT library exists,  a data area  by the
                 name  of  the  user of  the  job  is  searched for  in
                 TAADCT.   If  it does  not exist,  a data area  by the
                 name of SYSTEM is searched for in TAADCT.

                 3) If neither  data area exists the  TAADFT dictionary
                 in TAATOOL is used.


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

Only the first 32,000 bytes are checked.

2000 bytes segments  are handled.  If a word  splits over two segments,
it will probably be considered an error.

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

The following TAA Tools must be on your system:

     CHKOBJ3         Check object 3
     CHKSPELL2       Check spelling 2
     EDTVAR          Edit variable
     RSNLSTMSG       Resend last message
     RTVUSRSPC       Retrieve user space
     RTVUSRSPCA      Retrieve user space attributes
     RTVSYSVAL3      Retrieve system value 3
     SNDCOMPMSG      Send completion message
     SNDESCINF       Send escape information
     SNDESCMSG       Send escape message
     SNDDIAGMSG      Send diagnostic message

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

None, the tool is ready to use.

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

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

   CHKSPCSPE     *CMD                   TAASPCU       QATTCMD
   TAASPCUC      *PGM       CLP         TAASPCUC      QATTCL
   TAASPCUR      *PGM       RPGLE       TAASPCUR      QATTRPG
					

Added to TAA Productivity tools April 15, 2011


Home Page Up to Top