| DB Access Class Library for COBOL V1.0 API Reference - Microsoft(R) Windows(R) - - Microsoft(R) Windows NT(R) - - Microsoft(R) Windows(R) 2000 - |
Contents
Index
![]()
|
Chapter 6 DB Access Library API Reference
6.3 Methods for Creating Bind Tables
Registers a data item associated with data in the variable-length format and an associated indicator variable
in a bind table.
INVOKE BIND-A "REGISTER-VARYING-INDICATOR" USING GET-DATA-LEN GET_DATA_DAT INDICATOR.
BIND-A [attribute:OBJECT REFERENCE special-class-name]
Specifies a bind table object.
GET-DATA-LEN [attribute:S9(9|4) BINARY|COMP|COMP-5]
Specifies the length field of variable-length data.
GET-DATA-DAT [attribute:X(n)|N(n)]
Specifies the data field of variable-length data.
INDICATOR [attribute:S9(4) BINARY|COMP|COMP-5]
Specifies an indicator variable.
‚È‚µ
The REGISTER-VARYING-INDICATOR method registers a data item that handles data in the variable-length format and a data item that handles a NULL value. When a field that is fetched contains a NULL value, an indicator variable of -1 is set. When a NULL value is set in a field, an indicator variable of -1 is set.
GET-DATA-LEN and GET-DATA-DAT must be elementary items associated with the same group item.
Contents
Index
![]()
|