Get Export Long (QleGetExpLong) API


  Omissible Parameter Group:


  Returned Value:


  Service Program: QLEAWI

  Default Public Authority: *USE

  Threadsafe: Yes

The Get Export Long (QleGetExpLong) API allows the caller to resolve a pointer to an export (either data or procedure) either by name or export number. The pointer is materialized for the specified activation. If the activation mark given is zero, then all activations in the activation group are searched (no guaranteed search order). The QleGetExpLong API is identical to the Get Export (QleGetExp) API, except that the QleGetExp API takes a BINARY(4) activation mark as the first parameter instead of a BINARY(8) activation mark.

Authorities and Locks

None.


Omissible Parameter Group

Activation mark
INPUT; BINARY(8)

The activation containing the export. If this parameter is omitted, then it is treated as if a 0 was specified. This parameter may not be omitted if the search is done by export number.

The following special value is supported for this parameter:


Export number
INPUT; BINARY(4)

Materialize the nth exported identifier in the service program. The order is defined by the binding service language with the first exported identifier being 1. If this parameter is omitted, then it is treated as if a 0 was specified.

The following special value is supported for this parameter:


Export name length
INPUT; BINARY(4)

The length of the export name. If this parameter is omitted, then it is treated as if a 0 was specified. This parameter is ignored if the export number parameter is not zero.

The following special value is supported for this parameter:


Export name
INPUT; CHAR(*)

A string containing the name of the exported identifier. The name is matched exactly, without CCSID conversion or folding to uppercase. This parameter is ignored if the export number parameter is not zero. The export name cannot be omitted if the export number is omitted.

Exported item
OUTPUT; PTR(OPN)

The procedure pointer or space pointer to the exported item. If the identifier could not be exported, this value is null.

Type of export item
OUTPUT; BINARY(4)

The type of the exported item. The possible types follow:


Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter. If this parameter is omitted, diagnostic and escape messages are issued to the application.


Returned Value

Pointer to exported item
OUTPUT; PTR(OPN)

This API returns the value for the pointer to the exported item parameter.


Error Messages



API introduced: V5R3

[ Back to top | Program and CL Command APIs | APIs by category ]