Macro COBOL Source editor
This editor is used to modify the source code of Macros that are retrieved from different models (batch or client for example). It consists of a source code textual editor, in which you enter the code, and of a Macro code structure view, which displays the nodes hierarchy of the Macro.
The Macro COBOL editor offers the standard features and characteristics of the COBOL editor.
The Copy and Paste choices are available if you right-click in the editor
Display in the Macro COBOL editor
- A DOT annotation that replaces the level 99 that was indicated in the Pacbase Macros. You must not delete it because, upon generation, it adds a dot at the end of the previous significant line. You can enter it manually to add a dot at the end of the previous significant line.
- A COA annotation for the specific code lines that contained a COA operand in Pacbase.
You can identify the Macro lines with their colors. These colors can be modified in the preferences of the COBOL editor. To open the preferences wizard, select Preferences.
in the menu bar. You can also right-click in the Macro COBOL editor and selectMoreover, with the PDP coloring, the micropattern declaration lines are pink. You can change this default color by selecting .
The error symbols that might be displayed in the margin are explained in Accessing and modifying the Macro code.
Code insertion in the Macro COBOL editor
Code can be inserted easily with micropatterns and snippets. The snippets that can be inserted in Macros are available from RPP Macro snippets or RPP snippets in the Snippets view. When the instance that calls the Macro is generated, the micropatterns are recognized and the corresponding code lines are automatically generated.
- Insertion in an absolute mode, with no positioning relative to automatic functions or subfunctions.
- Insertion relative to the automatic functions or subfunctions of the Standard or client Dialog model
- Insertion relative to the automatic functions or subfunctions of the Business
Component model. The following insertions are possible:
- Insertion relative to a 05 hierarchical level
- Insertion relative to the SQL processing
- Insertion relative to the Logical View processing
- Insertion relative to the logical access level
- Insertion relative to the physical access level
You can also modify the level or title of a function or subfunction in a wizard. To open it, set your cursor inside a function or subfunction, right-click and select Update the function or subfunction.