The SAGQFETC function fetches a row from the cursor identified by cursor_ptr. The results are stored in the memory indicated by the pointers output_sqlda_ptr->sql_var[x]-> sqldata.
Example
sagqfetc ( int anchor, SQL_CTR_BLOCK * sql_cb_ptr, char * cursor_ptr);