Powered by Zoomin Software. For more details please contactZoomin

DataDirect OpenAccess SDK Help

dam_getFirstGrantee/dam_getFirstGranteeW

  • Last Updated: May 12, 2026
  • 1 minute read
    • OpenAccess SDK
    • Version 8.1
    • Documentation

These functions are used to navigate the granted user list in the GRANT and REVOKE commands of the IP DCL function. The dam_getFirstGranteeW function is used for Unicode.

int dam_getFirstGrantee(
    DAM_HSTMT  hstmt, 
    char     * pcCatalog, 
    char     * pcGranteeName)
int dam_getFirstGranteeW(
    DAM_HSTMT  hstmt, 
    OAWCHAR  * pcCatalog, 
    OAWCHAR  * pcGranteeName)

Parameters for dam_getFirstGrantee/dam_getFirstGranteeW

Parameter Type Description
IN
hstmt DAM_HSTMT The statement handle.
OUT
pcCatalog char *
OAWCHAR *
The name of the catalog.
pcGranteeName char *
OAWCHAR *
The name is one of the following:
  • user name
  • role name
  • DAM_PUBLIC_USER_NAME - to indicate that the grantee is PUBLIC
  • RETURN
    int DAM_SUCCESS - on success
    DAM_FAILURE - on failure
    DAM_NO_DATA_FOUND - on end of list when no data is retrieved
    TitleResults for “How to create a CRG?”Also Available inAlert