Macro code structure view

This view displays a tree with the nodes of the Macro. It is used to easily identify where specific code was inserted.

The nodes correspond to the work areas, subfunctions, sections, and divisions in a Macro.

This view displays the levels and identifiers of the functions and subfunctions.

In this view, you can see a Macro in a skeleton that is retrieved from a model (batch or client for example). To activate a skeleton, click the triangle (View menu) in the view toolbar. Select Skeleton and a model in the list. The lines that are retrieved from the model are colored (standard color in the COBOL editor). If you do not need any skeleton, select Skeleton > None. If you click a node in the tree, the whole function that is included in the node is highlighted in the Macro COBOL editor.

The toolbar menu also contains the option Synchronize the COBOL source with the code structure view. You must use it to synchronize the Macro code when it is desynchronized in the view. For example, you can create a function 01 after a function 21 in the Macro COBOL editor. The editor and the Macro code structure view are desynchronized. If you activate this option, the display order of the functions is restored in the Macro COBOL editor.

If you right-click in the view, you can create a function or subfunction by selecting Create a function or subfunction in the contextual menu. Moreover, if you right-click a node that represents a function or subfunction, you can also update or delete it by selecting Update the function or subfunction or Delete the function or subfunction from the contextual menu.

See Creating specific functions or subfunctions for detailed explanations on the functions or subfunctions creation wizard.

You can filter the nodes display by entering a character string in the filter input field. The wildcard character * replaces a character string and ? replaces a character; they are optional at the end of the string. When you start typing in the field, a button becomes available. Clicking it clears the field and restores the list as it was initially displayed.


Feedback