Rational Programming Patterns

Macro COBOL editor

This COBOL editor is used to modify Macros retrieved from different models (batch, dialogue, client, client monitor, server, and server monitor). It consists of a COBOL editor in which you enter your code directly, and of a Macro code structure view with the nodes of functions and subfunctions. In the editor, you can insert functions, subfunctions, and formatted comment lines corresponding to micropatterns on function lines. You can also complete standard procedures.

You access the Macro COBOL editor from the COBOL Source tab in the design editor of a Macro. To open it, double-click a Macro instance in the Design Explorer view: it opens the COBOL Source tab. Another way of opening the editor is to right-click a Macro instance and select Open with COBOL and model editor .

The Macro COBOL editor consists of a textual editor and of a Macro code structure view.

It is used to enter, modify, and delete lines in the design file of a Macro. It offers standard functions and the standard COBOL characteristics. With a system of colors, you can clearly identify the lines in the Macro. The view associated with the Macro editor is presented in figure 1 Macro code structure.
Figure 1. Macro COBOL editor
Lines entered in the Macro COBOL editor
You identify the code lines of a Macro with standard colors in the COBOL editor.

All colors can be modified in the preferences of the COBOL editor. To open the preferences wizard, select Window > Preferences > COBOL > Editor > Syntax coloring in the menu bar of the Design Explorer view. You can also right-click in the Macro COBOL editor and select Preferences.

Remember: You can manually enter micropatterns as formatted comment lines.
Note: When the instance calling the Macro is generated, these lines are recognized and completed automatically.
You can perform general actions or actions specific to a selected element. You can create actions common to all the models such as:
  • Links in the linkage sections
  • Description lines containing one or more sequences of statements which can be used in one or more programs (at the beginning of the program, in the work area or in the procedural code lines)
  • Functions or subfunctions
  • Detail lines in the PROCEDURE DIVISION
Or actions specific to a model you have selected (batch, dialogue, client, client monitor, server, and server monitor):
  • Update parameters (specific to the dialog or server model)
  • Insertion at the level of a general process (specific to the server model)
  • Insertion at the level of a Logical View (specific to the server model)
  • Insertion at the level of a logical access (specific to the server model)
  • Insertion at the level of a physical access (specific to the server model)
Attention: You must take care of the syntactical rules. Before you enter code lines, read Syntactical rules in the Macro COBOL editor
.

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)