Application
Application
Application
You can specify Licensed Internal Code options (LICOPTs) when you create modules, and you can modify the options of an existing object with the Change Module (CHGMOD), Change Program (CHGPGM), and Change Service Program (CHGSRVPGM) commands. With these commands, you can replace the entire LICOPT string or add LICOPTs to an existing string. Adding LICOPTs to an existing string is useful when the objects being changed have different LICOPTs and you do not want to lose the existing LICOPTs.
An example of applying Licensed Internal Code options to a module is:
> CHGMOD MODULE(TEST) LICOPT('maf')
When used on CHGPGM or CHGSRVPGM, the system applies the specified Licensed Internal Code options to all modules that are contained in the ILE program object. An example of applying Licensed Internal Code options to an ILE program object is:
> CHGPGM PGM(TEST) LICOPT('nomaf')
An example of applying Licensed Internal Code options to a service program is:
> CHGSRVPGM SRVPGM(TEST) LICOPT('maf')
To add a LICOPT to an existing object, use the *ADD keyword on
the LICOPT parameter. This example preserves the object’s existing
LICOPTs and adds a new one: LICOPT ('maf', *ADD).