SAGPointer Variable | Description |
ptr (redefined as host_address) | 8 byte pointer to a host variable or indicator declared in an application program. Example usage : C/C++: char PERSONNEL_ID [8 + 1]; API_OUTPUT_SQLDA->sqlvar [0].sqldata.ptr = (void *)PERSONNEL_ID; COBOL: 01 PERSONNEL-ID PIC X(8) VALUE SPACES. SET PTR OF SQLDATA OF SQLVAR OF API-OUTPUT-SQLDA(1) TO ADDRESS OF PERSONNEL-ID PL/I : DCL 1 PERSONNEL_ID CHAR (8) INIT (' ') VARYINGZ; API_OUTPUT_SQLDA_PTR -> API_OUTPUT_SQLDA.SQLVAR(1).SQLDATA.PTR = ADDR(PERSONNEL_ID); |