Customizing default options for z/OS XL C/C++ compiler

System programmers can customize the default options for the z/OS® XL C/C++ compiler by modifying USERMODs and jobs. The USERMOD can then be applied by submitting the jobs, which are also provided. See the following table for information on the USERMODs and jobs that can be modified.

Table 1. z/OS XL C/C++ compiler USERMODs and jobs
Element name USERMODS Resides in Jobs to submit
z/OS XL C compiler CCNEOPT CBC.SCCNJCL(CCNJOPT) CBC.SCCNJCL(CCNJMOD)
z/OS XL C++ compiler CCNEOPX CBC.SCCNJCL(CCNJOPX) CBC.SCCNJCL(CCNJMOX)

For the z/OS XL C compiler, the USERMOD CCNEOPT modifies the CCNEO00C assembler source file, which defines the z/OS XL C compiler options. It also defines the system include file SEARCH path, which includes Language Environment® header files.

For the z/OS XL C++ compiler, the USERMOD CCNEOPX modifies the CCNEO00X assembler source file, which defines the z/OS XL C++ compiler options. It also defines the system include file SEARCH path, which includes Language Environment header files.

If you plan to apply these USERMODs and have used a different prefix than the one supplied by IBM® for the :Language Environment and the Run-Time Library Extensions elements, please change the value of CEE and CBC to your chosen prefix on the SEARCH statements. Do not accept your USERMOD into the distribution library, as you might want to remove your USERMOD if you find it does not suit the needs of the programmers at your site.