A stanza in the configuration file can contain any of several attributes, as shown in the following table.
Attribute names that have suffix _64 are used when you specify the -q64 option of the cob2 command. When -q32 is specified or defaulted, the corresponding nonsuffixed attribute name is used.
| Attribute | Description |
|---|---|
| compiler1 | Path name of the COBOL compiler component. The default for cob2 is /usr/lpp/cobol/bin/IGYCCOB2. |
| compopts | A string of compiler options, separated by commas or spaces. Precede each option by a -q flag, or precede the whole string, enclosed in quotation marks, by a -q flag. If any option value contains a comma, that option must be enclosed in quotation marks. |
| crt, crt_64 | Path name of the object file passed as the first parameter to the linker. If you do not specify either the -p or -pg option, the value of crt is used. The default is /lib/crt0.o or /lib/crt0_64.o. |
| gcrt, gcrt_64 | Path name of the object file passed as the first parameter to the linker. If you specify the -pg option, the value of gcrt is used. The default is /lib/gcrt0.o or /lib/gcrt0_64.o. |
| ld | Path name to be used to link COBOL programs. The default is /usr/bin/ld. |
| ldflags, ldflags_64 | A string of option flags, separated by commas, to be passed to the linker. |
| mcrt, mcrt_64 | Path name of the object file passed as the first parameter to the linker if you specified the -p option. The default is /lib/mcrt0.o or /lib/mcrt0_64.o. |
| proflibs | Profiling libraries used by the linker, separated by commas. The default is -l/lib/profiled, -l/usr/lib/profiled. |
| runlib1 | Path names, separated by commas, of the libraries listed in runlib2. |
| runlib2, runlib2_64 | Libraries used by the linker, separated by commas; used for both profiling and nonprofiling. The default is stanza-dependent. |
| use | Stanza from which attributes are taken, in addition to the local stanza. For single-valued attributes, values in the use stanza apply if no value is provided in the local, or default, stanza. For comma-separated lists, the values from the use stanza are added to the values from the local stanza. |
related references
cob2, cob2_j, and cob2_r options