Each fragment of Micropattern Code is constituted of an id that can be assigned one or more code lines. In the code of a calling instance (COBOL Program, COBOL Copybook, or Source Code), you call this fragment through the RPPMPF micropattern, which is dedicated to the Software Development Kit. A fragment can be called several times in the code of a calling instance. After the instance is generated again, the lines that are associated with the fragment are automatically inserted in the code.
The code lines that are associated with a fragment with no tag will be inserted in the code of the calling instance where the RPPMPF micropattern that calls the fragment is indicated.
The code lines that are associated with a fragment with tags will be inserted in the code of the calling instance at the end of the specified tag.
The same id can then insert code lines at various locations in the code of the calling instance.
When you add a tag, you can select the Unique box to indicate that the lines that are associated with the tag will be inserted only once.
In the Micropattern Fragment source code, you indicate the code that is associated with each line of the Micropattern Fragments table. You must then enter the code lines that are associated with the id declaration line, and the code lines that are associated with each specified tag.
You must specify the code lines exactly as they will be inserted in the code of the calling instance. You can use parameters as $param. The parameter will be replaced with its value in the calling instance. This value can be indicated at several levels.