Convert Type (QLICVTTP) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: Yes

The Convert Type (QLICVTTP) API lets you convert an object type from the external symbolic format to the internal hexadecimal format and vice versa.

You can use the QLICVTTP API to:



Authorities and Locks

None.


Required Parameter Group


Conversion
INPUT; CHAR(10)

The type of conversion to perform.


Symbolic object type
I/O; CHAR(10)

The external symbolic name given to an object type. An asterisk (*) precedes the object type. The value of the conversion parameter specified determines if this is an input or output field. For a complete list of the available external object types, see External object types.

As an example, if the value of the Conversion field is '*SYMTOHEX' and the value of the Symbolic object type field is '*LIB', a value of x'0401' is returned in the Hexadecimal object type field. If the value of the conversion field is '*HEXTOSYM' and the value of the Hexadecimal object type field is x'0401', a value of '*LIB' is returned in the Symbolic object type field.

Hexadecimal object type
I/O; CHAR(2)

The MI representation of an external object type. This field is in hexadecimal form. The value of the conversion specified determines if this is an input or output field. For a list of the hexadecimal formats associated with external object types, see External object types.

As an example, if the value of the Conversion field is '*SYMTOHEX' and the value of the Symbolic object type field is '*DTAARA', a value of x'190A' is returned in the Hexadecimal object type field. If the value of the conversion field is '*HEXTOSYM' and the value of the Hexadecimal object type field is x'190A', a value of '*DTAARA' is returned in the Symbolic object type field.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Error Messages



API introduced: V2R2

[ Back to top | Object APIs | APIs by category ]