Stores a copy in memory of the node directory, and returns the number of entries. This is a snapshot of the directory at the time the directory is opened. This copy is not updated, even if the directory itself is changed later.
Use sqlengne - Get Next Node Directory Entry to advance through the node directory and examine information about the node entries. Close the scan using sqlencls - Close Node Directory Scan. This removes the copy of the directory from memory.
Authorization
None
Required Connection
None
Version
sqlenv.h
C API Syntax
/* File: sqlenv.h */ /* API: Open Node Directory Scan */ /* ... */ SQL_API_RC SQL_API_FN sqlenops ( unsigned short * pHandle, unsigned short * pNumEntries, struct sqlca * pSqlca); /* ... */ |
Generic API Syntax
/* File: sqlenv.h */ /* API: Open Node Directory Scan */ /* ... */ SQL_API_RC SQL_API_FN sqlgnops ( unsigned short * pHandle, unsigned short * pNumEntries, struct sqlca * pSqlca); /* ... */ |
API Parameters
REXX API Syntax
OPEN NODE DIRECTORY USING :value |
REXX API Parameters
Sample Programs
Usage Notes
Storage allocated by this API is freed by calling sqlencls - Close Node Directory Scan.
Multiple node directory scans can be issued against the node directory. However, the results may not be the same. The directory may change between openings.
There can be a maximum of eight node directory scans per process.
See Also
sqlencls - Close Node Directory Scan
sqlengne - Get Next Node Directory Entry.