Was this helpful?
dclgen Command--Generate Structure
The dclgen command generates a structure declaration file from table descriptions. The file contains a structure corresponding to the database table, and a DECLARE TABLE statement that serves as a comment and identifies the database table and columns from which the structure was generated.
When the file is generated, use an embedded SQL INCLUDE statement to incorporate it into the variable declaration section. See the example that follows.
The dclgen command has the following format:
dclgen [language] [dbname] [tablename] [filename] [structurename] [-n] [-q]
language
Specifies the embedded SQL host language, such as C.
dbname
Specifies the name of the database containing the table.
tablename
Specifies the name of the database table.
filename
Specifies the name of the output file into which the structure declaration is placed.
structurename
Specifies the name of the host language structure that the command generates. The structure tag is the structure name followed by an underscore character (_).
-n
Does not print the DECLARE TABLE statement.
-q
Creates output in QUEL format.
Last modified date: 01/30/2023