Main design tasks in the Program editor
You use the Program editor to complete design tasks such as specifying the resources, calling Macros, indicating generation option, or adding Batch error messages.
- Adding external resources to a Program
External resources are files that are represented by Data Structures or Reports. To add external resources in a Program, you must specify their logical and physical characteristics and the way they are to be used in the Program. - Modifying the internal resources of a batch or online program
The internal resources of a batch or online program are its work or linkage areas. You can replace their automatically generated descriptions by calling Data Structures or Data Elements in the work and linkage areas. To do so, you specify micropatterns directly in the COBOL code of the generated instance. - Adding Macro calls
When you call a Macro, its lines are inserted in a batch or online program. You can then use standard sequences of specific code several times in the same program or in different programs. To call a Macro, you must select it in the -CP Lines tab. If it is parameterized, you must assign values to its parameters. - Adding generation options to a Program
If you add generation options to a Program, you can modify the date transformation function or request the breakdown of the generated dates. - Adding Batch explicit error messages
You can indicate error messages that correspond to errors that are described with specific code.
Parent topic: The Program entity
Feedback