IBM Books

Administrative API Reference

sqledcls - Close Database Directory Scan

Frees the resources allocated by sqledosd - Open Database Directory Scan.

Authorization

None

Required Connection

None

Version

sqlenv.h

C API Syntax



/* File: sqlenv.h */
/* API: Close Database Directory Scan */
/* ... */
SQL_API_RC SQL_API_FN
  sqledcls (
    unsigned short Handle,
    struct sqlca * pSqlca);
/* ... */
 

Generic API Syntax



/* File: sqlenv.h */
/* API: Close Database Directory Scan */
/* ... */
SQL_API_RC SQL_API_FN
  sqlgdcls (
    unsigned short Handle,
    struct sqlca * pSqlca);
/* ... */
 

API Parameters

Handle
Input. Identifier returned from the associated OPEN DATABASE DIRECTORY SCAN API.

pSqlca
Output. A pointer to the sqlca structure. For more information about this structure, see SQLCA.

REXX API Syntax



CLOSE DATABASE DIRECTORY scanid

REXX API Parameters

scanid
A host variable containing the scanid returned from the OPEN DATABASE DIRECTORY SCAN API.

Sample Programs

C
\sqllib\samples\c\dbcat.c

COBOL
\sqllib\samples\cobol\dbcat.cbl

FORTRAN
\sqllib\samples\fortran\dbcat.f

REXX
\sqllib\samples\rexx\dbcat.cmd

See Also

sqledgne - Get Next Database Directory Entry

sqledosd - Open Database Directory Scan.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]

[ DB2 List of Books | Search the DB2 Books ]