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 - Get DCS Directory Entries to retrieve the entries, and sqlegdcl - Close DCS Directory Scan to release the resources associated with calling this API.
Authorization
None
Required Connection
None
API Include File
sqlenv.h
C API Syntax
/* File: sqlenv.h */
/* API: Open DCS Directory Scan */
/* ... */
SQL_API_RC SQL_API_FN
sqlegdsc (
short * pNumEntries,
struct sqlca * pSqlca);
/* ... */
|
Generic API Syntax
/* File: sqlenv.h */
/* API: Open DCS Directory Scan */
/* ... */
SQL_API_RC SQL_API_FN
sqlggdsc (
struct sqlca * pSqlca,
short * pNumEntries);
/* ... */
|
API Parameters
REXX API Syntax
OPEN DCS DIRECTORY |
Sample Programs
Usage Notes
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.
See Also
sqlegdcl - Close DCS Directory Scan