Powered by Zoomin Software. For more details please contactZoomin

DataDirect OpenAccess SDK Help

dam_getUser/dam_getUserW

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

This function returns the user information in the CREATE USER and DROP USER commands of the IP DCL function.

int dam_getUser(
    DAM_HSTMT  hstmt,
    char     *pcCatalog,
    char     *pcUserName, 
    char     *pcPassword,
    char     *pcUserData)
int dam_getUserW(
    DAM_HSTMT  hstmt,
    OAWCHAR   *pcCatalog,
    OAWCHAR   *pcUserName, 
    OAWCHAR   *pcPassword,
    OAWCHAR   *pcUserData)

Command Syntax

CREATE USER UserName \[IDENTIFIED
{BY Password | EXTERNALLY}\] [USERDATA UserData]
DROP USER UserName

Parameters for dam_getUser/dam_getUserW

Parameter Type Description
IN
hstmt DAM_HSTMT The statement handle.
OUT
pcCatalog char *
OAWCHAR *
The database catalog. Pass in a buffer of 128 characters.
pcUserName char *
OAWCHAR *
The name of the user. Pass in a buffer of 128 characters.
pcPassword char *
OAWCHAR *
The password of the user. The password string is DAM_OPS_PASSWORD, to indicate that the password was specified as EXTERNALLY. Pass in a buffer of 128 characters.
pcUserData char *
OAWCHAR *
The user data string. Pass in a buffer of 128 characters.
RETURN
int Status of the function call:
DAM_SUCCESS on success
DAM_FAILURE on error
DAM_NO_DATA_FOUND on no data retrieved.
TitleResults for “How to create a CRG?”Also Available inAlert