TAA Tools
GENRANPWD2    GENERATE RANDOM PASSWORD 2            TAASEHO

The  Generate Random  Password  2  command  returns a  random  password
which  adheres  to  the current  password  rules  found  in the  system
values.

Generate  Random Password  2 can be  helpful when needing  to setup new
user profiles,  or resetting  passwords for  users.   In addition,  the
TAA command,  INZPWD uses GENRANPWD2  to generate passwords  the system
will accept.

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

   RTNPWD        The  variable name for the  generated password that is
                 returned.  This is a  required parameter.  It must  be
                 declared as a CHAR(75).

   PWDLEN        The length  of the password to  be returned.   This is
                 a required parameter.

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

Most  password rules are supported.   Some rules are  not supported due
to constraints  such  as  the  inablility  to  know  previous  password
characteristics, or generation complexity.

  The following QPWDRULES are supported:
    *LTRMIN       *DGTMIN      *SPCCHRMIN
    *MAXLEN       *MINLEN      *REQANY3
    *CHRLMTAJC    *CHRLMTREP   *ALLCRTCHG
    *MIXCASE

  The following QPWDRULES are NOT supported:
    *LTRLMTAJC    *DGTLMTAJC   *SPCCHRLMTAJC
    *LTRLMTFST    *DGTLMTFST   *SPCCHRLMTFST
    *LTRLMTLST    *DGTLMTLST   *SPCCLHRMTLST
    *LTRMAX       *DGTMAX      *SPCCHRMAX
    *LMTSAMPOS    *LMTPRFNAME

  IF QPWDRULES is set to *PWDSYSVAL --
   The following system password rules are supported:
     QPWDMINLEN     QPWDRQDDGT   QPWDLMTREP
   These system values are NOT supported:
     QPWDMAXLEN    QPWDRQDDIF   QPWDLMTCHR
     QPWDLMTAJC    QPWDPOSDIF

If  a  Password   Approval  Program  is  specified,  its   logic  could
invalidate  the password  generated by this  tool.   In this  case, the
Password  Approval  Program  should be  changed  to  remove unsupported
password rules, as noted above.

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

The following TAA Tools must be on your system:

     SNDESCMSG       Send escape message
     SNDESCINF       Send escape info
     GENRANNBR       Generate random number

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

None, the tool is ready to use.

Exceptions that can be monitored for:
--------------

CPF9898 - An  error condition was met  in the program.   Specific error
should be found in the job log.

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

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

   GENRANPWD2    *CMD                   TAASEHO       QATTCMD
   TAASEHOC      *PGM       CLLE        TAASEHOC      QATTCL
					

Added to TAA Productivity tools April 15, 2018


Home Page Up to Top