Check EDRS Block Status (QxdaCheckEDRSBlock) API


  Required Parameter Group:


  Service Program: QXDADBBK

  Default Public Authority: *USE

  Threadsafe: Conditional; see Usage Notes


The Check EDRS Block Status (QxdaCheckEDRSBlock) API returns information about the availability status of a server system.


Authorities and Locks

None.


Required Parameter Group

Receiver variable
I/O; CHAR(*)

The structure in which to return information about the availability status of the system specified. For the format of this parameter, see BLKO0100 Format.

Length of receiver variable
INPUT; BINARY(4)

The number of bytes that the calling program provides for the receiver variable.

Receiver variable format
INPUT; CHAR(8)

The format of the receiver variable being used. The possible value is:


EDRS server system name
INPUT; CHAR(256)

The name of the database server system to check.

Error code
I/O; CHAR(*)

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


BLKO0100 Format

The following table shows the information to pass in the BLKO0100 format. For more details about the fields in this table, see Field Descriptions.



Field Descriptions

Backup server system name. The name of the system that is acting as the backup server system. This value will be set to blanks if the EDRS system is not blocked or switched.

Bytes available. The length of the information available to the API to return, in bytes.

Bytes returned. The actual number of bytes returned to the caller of the API.

EDRS server status. The status of the server system. The possible values are:

Job-suspension user data. The data associated with the block.

Length of job-suspension user data. The length of job-suspension user data returned.

Offset to job-suspension user data. The offset from the beginning of the receiver variable to the the job-suspension user data, in bytes.


Usage Notes

This function may be called from the initial thread of a job only.


Error Messages



API introduced: V4R4

[ Back to top | Database and File APIs | APIs by category ]