TAA Tools
CVTOBJTYP       CONVERT OBJECT TYPE                    TAAOBKX

The Convert Object Type  command converts from an external  object type
(such  as *PGM) to  an integer  value and/or  a 4 byte  character value
(such  as '0201').   For  the inverse function,  see CVTHEXOBJ.   For a
work display that allows interactive conversion, see DSPHEXOBJ.

A typical series of commands would be:

             DCL           &HEXOBJTYPE *CHAR LEN(4)
              .
             CVTOBJTYP     OBJTYPE(*PGM) HEXOBJTYPE(&HEXOBJTYPE)

The internal hex object type would be returned as 4 bytes.

CVTOBJTYP escape messages you can monitor for
---------------------------------------------

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

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

   OBJTYPE       The  external  object  type  (such  as  *PGM)   to  be
                 converted.  For  a full list of the  object types, use
                 the prompter.

   SYSOBJTYPE    A  two  byte  integer  value  which  is  the  internal
                 equivalent of the  object type.   For example, a  *PGM
                 object  would  be  returned  as  0513.    This  is  an
                 optional   return  variable  that  if   used  must  be
                 specified as *CHAR LEN(2).

   HEXOBJTYPE    The  four  byte  internal  equivalent  of  the  object
                 type.   For example, a  *PGM object would  be returned
                 as '0201'.   This is an optional  return variable that
                 if used must be specified as *CHAR LEN(4).

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

   HEXOBJTYPE    The  four  byte  internal  equivalent  of  the  object
                 type.

   SYSOBJTYPE    A  two  byte  integer  value  which  is  the  internal
                 equivalent of  the object type.   This is  an optional
                 return  variable  that if  used must  be  specified as
                 *CHAR LEN(2).

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

Because the command  returns variables,  it may  only be used  in a  CL
program.

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

The following TAA Tools must be on your system:

     SNDESCINF       Send escape information

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

None, the tool is ready to use.

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

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

   CVTOBJTYP     *CMD                   TAAOBKX       QATTCMD
   RTVSYMTYP     *CMD                   TAAOBKX2      QATTCMD
                                        TAAOBKX3      QATTCMD
                                        TAAOBKX4      QATTCMD
   TAAOBKXC      *PGM       CLP         TAAOBKXC      QATTCL
   TAAOBKXC2     *PGM       CLP         TAAOBKXC2     QATTCL
   TAAOBKXR      *PGM       RPGLE       TAAOBKXR      QATTRPG
   TAAOBKXR2     *PGM       RPGLE       TAAOBKXR2     QATTRPG

The  TAAOBKX3 and  TAAOBKX4 command  definitions are  used as  skeleton
code.


Structure
---------

CVTOBJTYP   Cmd
   TAAOBKXC   CL pgm
     TAAOBKXR   RPG pgm

RTVSYMTYP
   TAAOBKXC2  CL pgm
     TAAOBKXC2  RPG Pgm
					

Added to TAA Productivity tools June 15, 2004


Home Page Up to Top