Changes a database comment in the system database directory or the local database directory. New comment text can be substituted for text currently associated with a comment.
Scope
This API only affects the node on which it is issued.
Authorization
One of the following:
Required Connection
None
Version
sqlenv.h
C API Syntax
/* File: sqlenv.h */ /* API: Change Database Comment */ /* ... */ SQL_API_RC SQL_API_FN sqledcgd ( _SQLOLDCHAR * pDbAlias, _SQLOLDCHAR * pPath, _SQLOLDCHAR * pComment, struct sqlca * pSqlca); /* ... */ |
Generic API Syntax
/* File: sqlenv.h */ /* API: Change Database Comment */ /* ... */ SQL_API_RC SQL_API_FN sqlgdcgd ( unsigned short CommentLen, unsigned short PathLen, unsigned short DbAliasLen, struct sqlca * pSqlca, _SQLOLDCHAR * pComment, _SQLOLDCHAR * pPath, _SQLOLDCHAR * pDbAlias); /* ... */ |
API Parameters
The comment is only changed in the local database directory or the system database directory on the node on which the API is executed. To change the database comment on all nodes, run the API on every node.
REXX API Syntax
CHANGE DATABASE database_alias COMMENT [ON path] WITH comment |
REXX API Parameters
To change the comment in the system database directory, it is necessary to specify the database alias.
If the path where the database resides is specified (with the path parameter), enter the name (not the alias) of the database. Use this method to change the comment in the local database directory.
Sample Programs
Usage Notes
New comment text replaces existing text. To append information, enter the old comment text, followed by the new text.
To modify an existing comment:
Only the comment for an entry associated with the database alias is modified. Other entries with the same database name, but with different aliases, are not affected.
If the path is specified, the database alias must be cataloged in the local database directory. If the path is not specified, the database alias must be cataloged in the system database directory.
See Also