Get String Information (CEEGSI) API


  Required Parameter Group:

1 posn Input INT4
2 datatype Output INT4
3 currlen Output INT4
4 maxlen Output INT4

  Omissible Parameter:

5 fc Output FEEDBACK

  Service Program Name: QLEAWI

  Default Public Authority: *USE

  Threadsafe: Yes

The Get String Information (CEEGSI) API retrieves string information about a parameter used in the call to this API. String information describes the elements of a parameter, such as the type and the length of the string.

Authorities and Locks

None.


Required Parameter Group

posn (input)
The ordinal position in the parameter list of the formal parameter whose operational descriptor is required. A value of 1 denotes the leftmost parameter.

datatype (output)
The binary value of the data type field. The possible values and their data types are:
1 (typeEsc) An element descriptor type (descElmt) that is not one of the following data types.
2 (typeChar) A string of SBCS characters with values in the range X'00' through X'FF'.
3 (typeCharZ) A string of SBCS characters with values in the range X'01' through X'FF' that ends with a null byte (X'00').
4 (typeCharV2) A string of SBCS characters prefixed by an unsigned 2-byte binary count field. The count field specifies the current length of the string in terms of the number of string elements, that is, the number of characters.
5 (typeCharV4) A string of SBCS characters prefixed by an unsigned 4-byte binary count field. The count field specifies the current length of the string in terms of the number of string elements, that is, the number of characters.
6 (typeBit) A string of bits with values of 0 or 1.
7 (typeBitV2) A string of bits prefixed by an unsigned 2-byte binary count field. The count field specifies the current length of the string in terms of the number of string elements, that is, the number of bits.
8 (typeBitV4) A string of bits prefixed by an unsigned 4-byte binary count field. The count field specifies the current length of the string in terms of the number of string elements, that is, the number of bits.
9 (typeGChar) A string of DBCS characters with values in the range X'0000' through X'FFFF'.
10 (typeGCharZ) A string of DBCS characters with values in the range X'0001' through X'FFFF' that end with a null byte (X'0000').
11 (typeGCharV2) A string of DBCS characters prefixed by an unsigned 2-byte binary count field. The count field specifies the current length of the string in terms of the number of string elements, that is, the number of characters.
12 (typeGCharV4) A string of DBCS characters prefixed by an unsigned 4-byte binary count field. The count field specifies the current length of the string in terms of the number of string elements, that is, the number of characters.

currlen (output)
A binary number containing the current number of elements in the string, as follows:
maxlen (output)
A binary number containing the maximum number of string elements, as follows:

Omissible Parameter

fc (output)
A 12-byte feedback code.

Feedback Codes and Conditions

CEE0000 The API completed successfully
Severity: 00  
CEE0501 The operational descriptor data type is not valid
Severity: 30  
CEE0502 Missing operational descriptor
Severity: 30  
CEE0505 A NULL-terminated string is not found
Severity: 10  

Usage Notes



API introduced: V2R3

[ Back to top | ILE CEE APIs | APIs by category ]