Retrieve View Line Information (QteRetrieveViewLineInformation) API


  Required Parameter Group:


  Service Program: QTEDBGS

  Threadsafe: No

The Retrieve View Line Information (QteRetrieveViewLineInformation) API is used to retrieve information about a specified number of lines in a registered view.

The data returned to the caller of the API indicates whether a given line or range of lines within a view can be run or not.


Authorities and Locks

None.


Required Parameter Group

Receiver variable
OUTPUT; CHAR(*)

The receiver variable that receives the information requested. You can specify the size of the area to be smaller than the format requested as long as you specify the length parameter correctly. As a result, the API returns only the data that the area can hold.

See RTVL0100 Format for details on the format of the receiver variable.

Length of receiver variable
INPUT; BINARY(4)

The length of the receiver variable provided by the receiver variable parameter. If this value is larger than the actual amount of storage allocated for the receiver variable, the results are not predictable. The minimum length is 8 bytes.

Format name
INPUT; CHAR(8)

The format of the information returned. The possible format names are:


View ID
INPUT; BINARY(4)

The identifier of a previously registered view obtained by using the Register Debug View (QteRegisterDebugView) API.

Start line number
INPUT; BINARY(4)

The number of the first line in the view for which the API is to retrieve information. This must be greater than or equal to 1 and less than or equal to the total number of lines in the view.

Number of lines
INPUT; BINARY(4)

The number of lines in the view for which the API is to retrieve information. This number includes the line specified in the start line number parameter. Fewer than number of lines elements may be placed in the receiver variable if fewer lines than requested are available. No more than number of lines elements are placed in the receiver variable.

The following special values are supported for this parameter:


Error code
I/O; CHAR(*)

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


RTVL0100 Format

For a description of the fields in the receiver variable, see Field Descriptions.



Field Descriptions

Bytes available. The number of bytes of data available to be returned. All available data is returned if enough space is provided.

Bytes returned. The number of bytes of data returned.

Begin of changeContinuation flag.The flag defined to indicate whether this line is a continuation of previous line. Possible values are:

End of change

Length of line information array element. The number of bytes occupied by a single element of the line information array. Line information array elements are contiguous and all have the same length.

Line disposition. Whether the line in the view described by this array element can be run or not. Possible values are:

Begin of changeLine format.The format type of the source line. Possible values are:

End of change

Number of line information array elements. The number of elements in the line information array that were returned by this API.

Offset to line information array. The offset (in bytes) from the start of the receiver variable to the first element of the line information array.

Reserved. An ignored field.


Error Messages



API Introduced: V3R6

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