These micropatterns are specific code operators with a
strong added value. You enter them in the COBOL code of an instance
with the PDP COBOL
editor, or in the code of a Macro with the Macro editor. When the
instance is generated again, they are recognized and are expanded
with information fetched from the instance design or from the use
context.
Note: Micropatterns with a strong added value are also available
as snippets. Snippets display an input aid or wizard to specify the
declaration lines of the corresponding micropatterns. They are available
from the Rational Developer for System z Snippets view,
in the RPP snippets or RPP Macro
snippets category
To be recognized, a micropattern must be entered as a comment with
a special format. It must include a start tag, an identifier, and
the content lines themselves. The identifier and the content lines
are specific to each micropattern.
Micropatterns are divided into two types:
- Local micropatterns, which apply to the part of the code where
they have been inserted (micropatterns for internal resource calls
for example)
- Global micropatterns, which add code in several places, not necessarily
where they have been inserted (date formatting micropattern for example)
The code generated from the micropattern is automatically updated
upon each generation if the following conditions are met:
- The formatted comment lines that constitute the micropattern have
been updated.
- The design element of the instance that is called in the micropattern
has been modified (for example: if the internal format of a called
Data Element has been changed).
You can specify micropatterns in the following generated COBOL
files: