Programming Guide



dm_is_cursor

Verifies that a cursor is open

#include <dmuproto.h>
int dm_is_cursor(char *cursor_name);

cursor_name
Specifies a cursor name. For a named cursor, use the name specified in a
DBMS DECLARE CURSOR command. For a default cursor, specify cursor_name as being default_cursor or as being 0.

Returns

Example

#include <smdefs.h>
#include <dmuproto.h>

int free_resources()
{

if (dm_is_cursor("work_cursor"))
{
dm_dbms("close cursor work_cursor");
}
return 0
}