COBOL for AIX uses several compiler-only environment variables, as shown below.
Because COBOL words are case insensitive, all letters in COBOL words are treated as uppercase, including library-name and text-name. Thus environment variable names that correspond to such names must be uppercase. For example, the environment variable name that corresponds to COPY MyCopy is MYCOPY.
If COBCPYEXT is not defined, the following suffixes are searched: CPY, CBL, COB, and the lowercase equivalents cpy, cbl, and cob.
If COBLSTDIR is not defined, the compiler listing is written into the current directory.
export COBOPT="TRUNC(OPT) TERMINAL"
Default values apply to individual compiler options.
If you do not specify a library-name, the compiler searches the library paths in the following order:
The search ends when the file is found.
For more details, see the documentation of the COPY statement in the related reference about compiler-directing statements.
To specify multiple path names, delimit them with a colon (:).
For more details, see the documentation of the COPY statement in the related reference about compiler-directing statements.
related concepts
DB2 coprocessor
related tasks
Using SQL INCLUDE with the DB2 coprocessor
related references
cob2, cob2_j, and cob2_r options
Compiler options
Compiler-directing statements