The dtw_execute() interface function processes macro FUNCTION blocks that contain statements that must be processed by the language environment. For example, a FUNCTION block that refers to a database language environment contains SQL statements that language environment uses to query the database.
The dtw_execute() interface function is called whenever a Net.Data macro processes a FUNCTION block that refers to the language environment. When the dtw_execute() interface function completes, what happens next depends on whether the language environment is processing table data a row at a time. If so, the interface function sets DTW_LE_CONTINUE flag in the dtw_lei_t structure to tell Net.Data to call the dtw_getNextRow() interface function. See dtw_getNextRow() for more information about the dtw_getNextRow() interface function and its processing steps.
You can optimize performance by having the dtw_execute() interface function do all the processing necessary to produce the input for the report block processing. For example, your dtw_execute interface function can generate an entire table to be processed during the report block phase