The dtw_getNextRow() interface function retrieves input for row-at-a-time processing of Net.Data tables. It is called each time the DTW_LE_CONTINUE flag is set, indicating that another row of data needs to be processed for the table. Use dtw_getNextRow() for database language environments.
Restriction: This interface function is only called if Net.Data is running on the OS/400 or OS/390 operating systems.
Net.Data calls dtw_getNextRow() when the following conditions are met:
When the dtw_execute() function sets the DTW_LE_CONTINUE flag to on, Net.Data performs the following steps:
When dtw_getNextRow() is called, the row field in the dtw_lei_t structure is set to point to a row object. To manipulate the row object, use the Net.Data utility functions, dtw_row_SetCols() and dtw_row_SetV(). Net.Data assumes that after the first call to the dtw_getNextRow() interface function the row object contains the column headings for the table. Subsequent calls contain the actual table data.
The dtw_getNextRow() function continues to get called (unless message block processing indicates otherwise) as long as the DTW_LE_CONTINUE flag is set.