Product Documentation

c-treeRTG COBOL Edition User's Guide

Previous Topic

Next Topic

Editing a Configuration File

The configuration file consists of a collection of elements and attributes nested in a hierarchy. The hierarchy is depicted by the tree displayed in the Configuration Tool. The tool allows you to edit the tree by adding and removing elements and attributes. The tool displays information about the selected elements and attributes.

To add an element to the file:

  1. Select an existing element in the file. The new element will be placed under the selected element (e.g., the selected element will be the parent of the new element: if you select <config>, the new element will be a child of <config>; if you select <instance>, the new element will be a child of <instance>).
  2. Right-click on the selected element and select Add New Element from the menu that appears.
  3. Select the desired element from the list of valid elements that appears.

    The list shows only elements that can be used at the selected location in the tree. This implies that the list will be different depending on the element selected in step 1.

  4. The new element will be placed in the tree.
  5. The new element will be given a default value. A list labeled Name and Value is shown in the right side of the tool. Edit the value in that list to set the desired value.

Add New Element

To add an attribute to an element:

  1. Select an existing element in the file. The new attribute apply to the selected element (e.g., the selected element will be the parent of the new attribute).
  2. Right-click on the selected element and select Add New Attribute from the menu that appears.
  3. Select the desired attribute from the list of valid attributes that appears.

    The list shows only those attributes that can be used at the selected location in the tree, so the list will be different depending on the element selected in step 1.

  4. The new attribute will be placed in the tree under the selected element.
  5. The new attribute will be given a default value. A list labeled Name and Value is shown in the right side of the tool. Edit the value in that list to set the desired value.

Setting the value of a new attribute

To remove an element from the file:

  1. Right-click on the element.
  2. Select Remove Item from the menu that appears.

In This Section

COBOL Configuration Note

Previous Topic

Next Topic

COBOL Configuration Note

To check the syntax of your configuration file and see if it can connect to the server, see ctutil ‑test.

TOCIndex