mfhco dclgen command

Syntax

UNIX:
cobmfhco dclgen db=databasename lang=language tbl=schemaname.tablename 
  file=copybookname [pre={USER | TBL | NO}] [user=username] [fld={COL | NUM}]
Windows:
mfhco dclgen db=databasename lang=language tbl=schemaname.tablename 
  file=copybookname [pre={USER | TBL | NO}] [user=username] [fld={COL | NUM}]

Syntax Rules

  1. At least one space must occur before each parameter in the command.
  2. There must be an equal sign (=) between parameters and their values.
  3. If you omit parameters that have a default value, Host Compatibility Option uses the default value.

Parameters

databasename Database to connect to.
language Language to generate. cbl is the default; can also specify c or pli.
schemaname Schema name for the generated copybook.
tablename Table name for the generated copybook.
filename Name of the copybook file to generate.
TBL Specifies that the copybook prefix is the same as the table name. Default.
USER Specifies that the prefix is supplied by the user.
NO Specifies that there is no prefix.
username A text string composed of valid COBOL characters, used as a prefix for each host variable in the copybook.
COL Specifies the column name. Default.
NUM Specifies the column number.

Example

UNIX:
cobmfhco dclgen db=db2demo lang=cbl tbl=demo.items file=item.cpy
Windows:
mfhco dclgen db=db2demo lang=cbl tbl=demo.items file=item.cpy