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.

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.

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.

The priority order is as follows:
  • A parameter that is indicated in a 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.

The Skeleton name can be parameterized with $name. Its label can be parameterized with $label.

Insertion of specific code

You can modify the generated code by completing one of the following actions:
  • Insert specific code directly.
  • Call a Micropattern Code 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 Micropattern Code from the Snippets view, category RPP SDK Micropattern snippet > Micropattern Code for COBOL.
  • Create micropatterns with the dedicated Java™ API and call them in the generated code.

Feedback