Compiler customization
None.
Specifies where the compiler should look for additional compiler options.
NOOPTFILE
You can specify any valid filename, including a DD name such as (DD:MYOPTS). The DD name may refer to instream data in your JCL. If you do not specify filename, the compiler uses DD:SYSOPTF.
The NOOPTFILE option can optionally take a filename suboption. This filename then becomes the default. If you subsequently use the OPTFILE option without a filename suboption, the compiler uses the filename that you specified with NOOPTFILE earlier.
CXX HELLO (NOOPTF(./hello.opt) OPTF
CXX HELLO (OPTF(./hello.opt)
The options are specified in a free format with the same syntax as they would have on the command line or in JCL. The code points for the special characters \f, \v, and \t are whitespace characters. Everything that is specified in the file is taken to be part of a compiler option (except for the continuation character), and unrecognized entries are flagged. Nothing on a line is ignored.
OPTFILE(DD:OF) OPTFILE
the
compiler processes the option OPTFILE(DD:OF), but
the second option OPTFILE is not processed. A diagnostic
message is produced, because the second specification of OPTFILE uses
the same option file as the first. OPTFILE(DD:OF) OPTFILE(DD:OF1)
The OPTFILE option has the same effect on the IPA link step as it does on a regular compilation.
None.
// CPARM='SO OPTFILE(PROJ1OPT) EXPORTALL'
If
the file PROJ1OPT contains OBJECT LONGNAME,
the effect on the compiler is the same as if you specified the following:
// CPARM='SO OBJECT LONGNAME EXPORTALL'
// CPARM='OBJECT OPTFILE(PROJ1OPT) LONGNAME OPTFILE(PROJ2OPT) LIST'
If the file PROJ1OPT contains SO LIST and the file PROJ2OPT contains
GONUM, the net effect to the compiler is the same as if you specified
the following: // CPARM='OBJECT SO LIST LONGNAME GONUM LIST'
| ...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
LIST 00000010
INLRPT 00000020
MARGINS 00000030
OPT 00000040
XREF 00000050
The compile has the same effect as if you specified the
following options on the command line or in a PARMS= statement in
your JCL: LIST INLRPT MARGINS OPT XREF
//COMP EXEC CBCC,
// INFILE='<userid>.USER.CXX(LNKLST)',
// OUTFILE='<userid>.USER.OBJ(LNKLST),DISP=SHR ',
// CPARM='OPTFILE(DD:OPTION)'
//OPTION DD DATA,DLM=@@
LIST
INLRPT
MARGINS
OPT
XREF
@@