Transfers a copy of Database Connection Services (DCS) directory entries to a buffer supplied by the application.
None
None
sqlenv.h
SQL_API_RC SQL_API_FN
sqlegdgt (
short * pNumEntries,
struct sql_dir_entry * pDCSDirEntries,
struct sqlca * pSqlca);
SQL_API_RC SQL_API_FN
sqlggdgt (
struct sqlca * pSqlca,
short * pNumEntries,
struct sql_dir_entry * pDCSDirEntries);
The sqlegdsc API, which returns the entry count, must be called before issuing GET DCS DIRECTORY ENTRIES.
If all entries are copied to the caller, the Database Connection Services directory scan is automatically closed, and all resources are released.
If entries remain, subsequent calls to this API should be made, or CLOSE DCS DIRECTORY SCAN should be called, to release system resources.
GET DCS DIRECTORY ENTRY [USING :value]