This structure is used to pass information from sqluroll - Rollforward Database.
Table 15. Fields in the RFWD-OUTPUT Structure
Field Name | Data Type | Description |
---|---|---|
PAPPLICATIONID | Pointer | The address of a buffer of length SQLU_APPLID_LEN+1 (defined in sqlutil) to hold an application identifier returned from the API. This identifier can be used with the database system monitor APIs to monitor some aspects of the application. If this information is not of interest, supply the NULL pointer. In a multi-node environment, returns only the application identifier for the catalog node. |
PNUMREPLIES | Pointer | Number of node replies received. Each node that replies fills in an sqlurf_info structure in pNodeInfo. In a single-node environment, the value of this parameter is 1. |
PNODEINFO | Structure | Node reply information. A user defined array of NumNodeInfo sqlurf_info structures. |
Table 16. Fields in the SQLURF-INFO Structure
Possible values for STATE (defined in sqlutil) are:
Language Syntax
C Structure
/* File: sqlutil.h */ /* Structure: RFWD-OUTPUT */ /* ... */ SQL_STRUCTURE rfwd_output { char *pApplicationId; long *pNumReplies; struct sqlurf_info *pNodeInfo; }; /* ... */ |
/* File: sqlutil.h */ /* Structure: SQLURF-INFO */ /* ... */ SQL_STRUCTURE sqlurf_info { SQL_PDB_NODE_TYPE nodenum; long state; unsigned char nextarclog[SQLUM_ARCHIVE_FILE_LEN+1]; unsigned char firstarcdel[SQLUM_ARCHIVE_FILE_LEN+1]; unsigned char lastarcdel[SQLUM_ARCHIVE_FILE_LEN+1]; unsigned char lastcommit[SQLUM_TIMESTAMP_LEN+1]; }; /* ... */ |
COBOL Structure
* File: sqlutil.cbl 01 SQL-RFWD-OUTPUT. 05 SQL-APPLID USAGE IS POINTER. 05 SQL-NUMREPLIES USAGE IS POINTER. 05 SQL-P-NODE-INFO USAGE IS POINTER. * |
* File: sqlutil.cbl 01 SQLURF-INFO. 05 SQL-NODENUM PIC S9(4) COMP-5. 05 FILLER PIC X(2). 05 SQL-STATE PIC S9(9) COMP-5. 05 SQL-NEXTARCLOG PIC X(12). 05 FILLER PIC X. 05 SQL-FIRSTARCDEL PIC X(12). 05 FILLER PIC X. 05 SQL-LASTARCDEL PIC X(12). 05 FILLER PIC X. 05 SQL-LASTCOMMIT PIC X(26). 05 FILLER PIC X. 05 FILLER PIC X(2). * |