When you generate a COBOL program for z/OS®, the
bind build
descriptor option identifies the bind control part for a program on z/OS that accesses SQL tables on DB2®.
- If a value is specified for this option, EGL searches for a bind
control part with a name matching that value. Depending on the results
of the search, one of the following events occurs:
- If the bind control part is found, its contents are used to create
a bind control file that is used in preparation of the program. EGL
replaces any symbolic parameters in the bind control file with the
appropriate values, as described in Symbolic parameters used with COBOL generation.
- If the bind control part is not found, a generation error occurs.
- If a value is not specified for this option, EGL searches for
a bind control part with the same name as the program being generated.
Depending on the results of the search, one of the following occurs:
- If a bind control part is found with the same name as the program,
its contents are used to create a bind control file that is used in
preparation of the program. EGL replaces any symbolic parameters in
the bind control file with the appropriate values, as described in Symbolic parameters used with COBOL generation.
- If a bind control part is not found with the same name as the
program, EGL generates a bind control file that references the DBRM
of the program being generated and any other DBRM that is needed by
the EGL runtime.
You can use your own symbolic parameters or any predefined symbolic
parameters in the bind control part.