Skip to main content

How to change the INI settings for mfhco dclgen?

  • October 17, 2017
  • 0 replies
  • 0 views

Problem:

Is there a way to change the structure name of the copybook that is generated after mfhco dclgen is run and use the system specified name for each copybook?

Resolution:

If you edit file mfhco.ini located in C:\\Program Files (x86)\\Micro Focus\\Enterprise Developer\\etc:

And put a value in structure name, it should use that value.

 

IBM also provides a DCLGEN tool for DB2 LUW:  db2dclgn

  

Usage: db2dclgn -d<database-name> -t<table-name> [<options>]

 

Option   Description          Parameter             Default Setting

-------------------------------------------------------------------------------

-a       Action               ADD|REPLACE           ADD

-b       LOB Variable Type    LOB|LOCATOR|FILE      LOB

-c       Column as Suffix     none                  FALSE

-i       Indicator Variables  none                  FALSE

-l       Host Language        C|COBOL|FORTRAN|JAVA  C

-n       Field Name Prefix    prefix                none

-o       Output File          filename              table-name.x

                                                    where .x is

                                                      .h    for C,

                                                      .cbl  for COBOL,

                                                      .java for JAVA,

                                                      .f    for FORTRAN (UNIX),

                                                      .for  for FORTRAN (INTEL)

-p       Password             password              none

-r       Remarks              none                  FALSE

-s       Structure Name       structure-name        table-name

-u       Userid               userid                none

-v       Verbose              none                  FALSE

-w       DBCS Variable Type   SQLDBCHAR|WCHAR_T     SQLDBCHAR

-y       DBCS Symbol          G|N                   G

-z       Convention           LUW|OS390             LUW

 

Example: db2dclgn -d sample -t emp_resume -l cobol -a replace


#MFDS
#EnterpriseDeveloper

0 replies

Be the first to reply!