Stores a copy in memory of the Database Connection Services directory entries, and returns the number of entries. This is a snapshot of the directory at the time the directory is opened.
The copy is not updated if the directory itself changes after a call to this API. Use sqlegdgt API and sqlegdcl API to release the resources associated with calling this API.
None
None
sqlenv.h
SQL_API_RC SQL_API_FN
sqlegdsc (
short * pNumEntries,
struct sqlca * pSqlca);
SQL_API_RC SQL_API_FN
sqlggdsc (
struct sqlca * pSqlca,
short * pNumEntries);
The caller of the scan uses the returned value pNumEntries to allocate enough memory to receive the entries. If a scan call is received while a copy is already held, the previous copy is released, and a new copy is collected.
OPEN DCS DIRECTORY