Rational Programming Patterns

Result view of a server reference search

This view displays the results of the reference search that was requested for the selected instance or file. This search was started from the References > Server subreferences or References > Server super references choice of the instance or file contextual menu. It was performed directly on the Rational Team Concert™ server.

References of an instance

The search follows the composition links of the instance. The view title indicates which type of references is currently displayed, according to your search request:
  • The super references: the instances that reference the current instance,
  • The subreferences: the instances that are referenced by the current instance.
Example: If you search for the subreferences of a Program, you see all the instances that this Program calls, down to the finest level: Data Structures, Segments, and Data Elements. Moreover the subreferences always include the Library that contains the generation parameters of the instance.
Example: If you search for the super references of a Data Element, you see all the instances that call this Data Element, up to the highest level: Segments, Data Structures, Programs, Screens, Database Blocks.

References of a generated file

If you started the subreference search from the generated COBOL file of a Program, Screen, or Server (.cbl file), the result view displays the instances that were involved in the file generation.

For the .cbl files, the following information is displayed:
  • The design instance that constituted the entry point to generate the COBOL file,
  • The instances that are called with micropatterns (available from Rational Programming Patterns V9.0.1),
  • The Data Elements that are inserted manually in the code of the PROCEDURE DIVISION (available from Rational Programming Patterns V9.0.1). The number of usages of each Data Element in the COBOL file is indicated with usage(n), where n is the number of usages of the Data Element.
You can expand the displayed subreferences down to the finest level.

Possible actions on the references

If you right-click an instance in the reference tree, you can perform the following actions:
  • Open the instance in its design editor in a read-only mode. The editor displays the same information as it would if the instance was present in the local workspace. You can navigate through the instances. For example, you can open the editor of a Data Element from the CE Lines tab of a Segment.
  • Open the instance in its COBOL editor, in a read-only mode, if the entity contains a COBOL description.
  • Load the required artifacts. You can select this choice from one of the following line types:
    • One or more design files. A specific loading wizard opens. It displays the selected files and their required artifacts that were detected by following the subreference links. All these files are loaded into the local workspace, where they constitute a consistent set of data.
    • One or more source files or maps (for Screens). The links are automatically explored to find all the required artifacts. All these artifacts are loaded into the local workspace.

    For explanations, see Loading the local workspace.

  • Load the required projects for this instance. You can then limit the number of the components to be loaded into your local workspace in order to be able to work on the instance.
  • Search for its own super references or subreferences that are then in turn displayed in the Server References view.
If you right-click a Data Element, you can select Usage search (available from Rational Programming Patterns V9.0.1). This search detects the Data Element usages in the code that is entered manually in the PROCEDURE DIVISION of Programs, Screens, or Servers (files with a cbl extension). Selecting Usage search opens a dialog box where you can filter the cbl files on which the search is to run.
Note: If you start the search from the results of a server design search, all the cbl files of the stream are proposed by default. However, if you start the search from the results of a server subfreferences search, the cbl file from which the reference search was run is proposed by default.
When you click OK in the dialog box, you switch to the Server Usage Search view where the results of each usage are displayed.

Toolbar

This view contains a toolbar that can be used to perform the following actions:
  • Cancel the current search (Cancel current search icon).
  • View the previous reference searches (Show previous reference searches icon). Click the arrow associated with the icon to display a menu that contains the following elements:
    • The previous instances from which you requested a reference search. Select one of these instances to see its references in the view.
    • The History choice. This choice opens a window that shows the previous instances from which you requested a reference search. From this window, you can carry out the following actions:
      • Select an instance and display its references (Open or Open in new view) or remove this instance from the history (Remove),
      • Change the number of instances that are displayed in the history (10 is the default) by clicking the Configure link.
    • The Clear History choice, to remove all the previous searches from the history.
  • Switch from the super references to the subreferences of the current instance (subreferences).
  • Switch from the subreferences to the super references of the current instance (super references).
  • Modify the way that the instances are shown in this view. Click the triangle (View menu) and select one of the following choices:
    • Sort to specify a new sort criterion.
    • Display to display more information for each instance line in the tree: To remove some additional information from the line, select it again in the menu.
      Note: The relation is the name of the link between the source instance and the target instance. If this link occurs more than once (for example: if a Program calls the same Segment several times), the repetition number is displayed in parentheses, next to the relation name.
    This new setting is then automatically saved and associated with this view, until you change it again.

Terms of use | Feedback

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