TAA Tools
CVTSEUTYP       CONVERT SEU TYPE                       TAASRFD

The Convert SEU  type command converts an  SEU type such as RPG  to the
object type  *PGM (or PF  to *FILE).  This  can be helpful  when an end
user inputs an SEU type and the object type is needed.

A typical series of commands would be:

             DCL        &OBJTYPE *CHAR LEN(7)
              .
             CVTSEUTYP  SEUTYP(xxx) OBJTYPE(&OBJTYPE)
             MONMSG     MSGID(TAA9894) EXEC(DO) /* Not found */
                        /*                                   */
                        /*   Your handling of 'not found'    */
                        /*                                   */
             ENDDO      /* Not found */

CVTSEUTYP escape messages you can monitor for
---------------------------------------------

In most cases, an invalid SEU type will cause a CPF0001 message.

If  the  CPP is  called directly  with an  invalid type,  the following
escape message will occur:

      TAA9894    The SEU type is not known

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

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

   SEUTYP        The SEU type  to be converted.   Use the prompter  for
                 the supported list.

   OBJTYPE       The corresponding  object type to the SEU  type.  This
                 is  a required return  variable and  must be specified
                 as *CHAR LEN(7).


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

Because CVTSEUTYP returns a variable,  the command may only be used  in
a CL program.

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

The following TAA Tools must be on your system:

     SNDESCINF       Send escape information
     SNDESCMSG       Send escape message

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

None, the tool is ready to use.

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

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

   CVTSEUTYP     *CMD                   TAASRFD       QATTCMD
   TAASRFDC      *PGM       CLP         TAASRFDC      QATTCL
					

Added to TAA Productivity tools October 15, 2009


Home Page Up to Top