TAA Tools
CHKNAM          CHECK NAME                             TAACLPO

The Check  Name command  checks a  parameter to  see if it  is a  valid
name.   A  command interface  is provided,  but the  normal use  of the
function would be to use it from a HLL program such as:

     C                     CALL 'TAACLPOR'                 Check name
     C                     PARM           LIBNAM 10        Library
     C                     PARM           RTNCDE  8        Return code
     C           RTNCDE    IFEQ 'BAD'                      If bad
     C                      .
     C                      .

The command interface would be:

             CHKNAM   NAME(&NAME)
             MONMSG   MSGID(CPF9898) EXEC(DO)
              .          /* An invalid name exists */

A  valid name  must begin with  a letter A-Z  or the characters  $ # @.
The second  character must  be the  same as  the  first plus  0-9 or  _
(underscore).  No embedded blanks may exist.

Command parameters                                    *CMD

   NAME          The name to be tested.

Use from a HLL program

The parameter list is:

      NAME    *CHAR LEN(10)      Name to be checked
      RTNCDE  *CHAR LEN(8)       Return value
                                   GOOD = Valid name
                                   BAD  = Invalid name




The following TAA Tools must be on your system:

          SNDESCMSG     Send escape message


None, the tool is ready to use.

Objects used by the tool

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

   CHKNAM        *CMD                       TAACLPO       QATTCMD
   TAACLPOC      *PGM           CLP         TAACLPOC      QATTCL
   TAACLPOR      *PGM           RPG         TAACLPOR      QATTRPG

Added to TAA Productivity tools April 1, 1995

Home Page Up to Top