Each Static Micropattern block 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 block through the RPPMPF Static Micropattern, which is dedicated to the Software Development Kit. A block 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 block are automatically inserted in the code.
The code lines that are associated with a block with no tag will be inserted in the code of the calling instance where the RPPMPF Static Micropattern that calls the block is indicated.
The code lines that are associated with a block 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 Block source code, you indicate the code that is associated with each line of the Micropattern Blocks 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.