Create Options
Create Options
Create Options
When you create module and program objects, the default behavior of using all features available on the current machine is usually desirable. However, if you are building software for distribution onto a variety of systems, you might want to be more conservative in specifying which features should be used in your programs. For example, if you sell a software package that runs on 6.1, you might not want your programs and service programs to be converted on your customers’ machines. This could happen if the system you build on contains more features than those of some of your customers. Conversion on customer machines might be undesirable because of the following reasons:
- Customers might prefer not to incur the time spent converting the objects (during the restoration or during the first activation)
- Converted programs contain different hardware instructions than your original programs do. Although the program functionality remains the same, this might affect your customer support processes.
To avoid conversion, you can specify that your programs be built only with features common to all systems supported by the target release. You can achieve this in one of the following ways:
- Specifying the CodeGenTarget Licensed Internal Code option (LICOPT) when creating your module and program objects.
- Specifying the CodeGenTarget LICOPT on a Change Program (CHGPGM) or Change Service Program (CHGSRVPGM) command.
- Setting an environment variable to control which features are used.