Share this page

# lrd_data_info

Gets I/O descriptor information. (CtLib only)

    LRDRET lrd_data_info( LRD_CURSOR *mptCursor, unsigned int muiColNum, unsigned long muliIODescNum, char *mpszReqSpec, int miDBErrorSeverity);

mptCursor | A pointer to an LRD_CURSOR structure.
muiColNum | The column number of the requested data (one-based).
muliIODescNum | The I/O descriptor number (one-based, greater than 0).
mpszReqSpec | A pointer to the string containing the request specification.
miDBErrorSeverity | The Error Severity Levels of a failure in a database routine.

The lrd_data_info function gets I/O descriptor information based on a request specification. The request specification string is a null-terminated string containing semicolon-separated pairs of <keyword>=<value> specification.

Currently, keywords are not supported and the string must be empty (""). Only a "Get" operation is therefore supported.

For more details refer to the Function Header File lrd.h in the include directory.

## Return Values

See LRD Return Values.

## Parameterization

You cannot use standard parameterization for any arguments in this function.

## Example

In the following example, lrd_data_info gets I/O information from the second column.

    lrd_open_cursor(&Csr9, Con1, 0);
    lrd_stmt(Csr9, "select * from sampletext", -1, 148, -99999, 0);
    lrd_exec(Csr9, 0, 0, 0, 0, 0);
    lrd_result_set(Csr9, 1 /*Succeed*/, 4040 /*Row*/, 0);
    lrd_bind_cols(Csr9, BCInfo_D2, 0);
    lrd_fetch(Csr9, 1, 0, 0, PrintRow1, 0);
    lrd_data_info(Csr9, 2, 1, "", 0);
    lrd_bind_cols(Csr9, BCInfo_D4, 0);
    lrd_fetch(Csr9, 0, 0, 0, PrintRow2, 0);

    /* Note: no rows returned by above lrd_fetch */
    lrd_result_set(Csr9, -205 /*End results*/, 4046 /*Done*/, 0);
    lrd_open_cursor(&Csr10, Con2, 0);
    lrd_stmt(Csr10, "", -1, 151, 193, 0);
    lrd_assign(&_2_D5, "T", 0, 0, 0);
    lrd_send_data(Csr10, "", 1, "TotalLen=45;Log=1", &_2_D5, 0);

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: