Source tab of a COBOL Skeleton
This tab contains the sample basic structure of a COBOL code that is formatted as a hierarchical structure of tags. This structure will be used in the COBOL Programs or COBOL Copybooks that will call this Skeleton. You can use this sample structure to rapidly start describing a Skeleton but you can create your own structure.
The Source tab of the Skeleton is automatically associated with the Skeleton Structure view. This view displays the tags that are declared in the Skeleton and makes the navigation in the source lines easier.
Description of the tags
Tags are declared with *TAG: from column 7, followed by the tag.
The tag names must be unique in the Skeleton. If you create a tag whose name already exists, an error is automatically displayed on the line of the new tag and the line of the existing tag.
The tag hierarchy can be seen on the tag declaration line. The parent tag is followed, after a slash, by the child tag. Several hierarchical levels can be defined.
The tag declaration line is followed by one or more continuation lines with the tag contents. You can specify variables as $variable_name. Some variables have predefined values ($programId for example). The value of a variable can be indicated at several levels.
- A parameter that is indicated in a Static Micropattern call in the source of the calling instance,
- A variable that is defined as a property in the Definition tab of the calling instance,
- A variable that is defined as a property in the Definition tab of the Skeleton.
The variables will be replaced by their associated values upon generation.
Insertion of specific code
- Insert specific code directly.
- Call a Static Micropattern to insert code at the end of a tag or at the insertion location. You can then describe a Micropattern that will be taken into account upon the next generations. You can parameterize the values of its fields. You add this Static Micropattern from the Snippets view, category .
- Create micropatterns with the dedicated Java™ API and call them in the generated code.