Powered by Zoomin Software. For more details please contactZoomin

DataDirect OpenAccess SDK Help

dam_getNextGrantee/dam_getNextGranteeW

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

This function is used to navigate the granted user list in the GRANT and REVOKE commands of the IP DCL function. The dam_getNextGranteeW function is used for Unicode.

int dam_getNextGrantee(
    DAM_HSTMT  hstmt, 
    char    *  pcCatalog, 
    char    *  pcGranteeName)
int dam_getNextGranteeW(
    DAM_HSTMT  hstmt, 
    OAWCHAR  * pcCatalog, 
    OAWCHAR  * pcGranteeName)

The following parameters are synonymous:

This parameter... Is synonymous to this parameter...
szQualifier pcCatalog
szGranteeName pcGranteeName

Parameters for dam_getNextGrantee/dam_getNextGranteeW

Parameter Type Description
IN
hstmt DAM_HSTMT The statement handle.
OUT
pcCatalog char *
OAWCHAR *
The name of the catalog. Pass in a buffer of 128 characters.
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
  • Pass in a buffer of 128 characters.
    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