SAGQFETC
Description
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);

cursor_ptr | The cursor opened in SAGQOPEN.
sql_cb_ptr->output_sqlda_ptr->sql_var[x]-> sqldata | The result of the SAGQFETC function.

For information about anchor (required by each SAGQ* SQL function), see the ACEAPI SQL Functions page.