Product Documentation

c-treeRTG COBOL Edition User's Guide

Previous Topic

Next Topic

Creating a New File (Advanced)

To create a new configuration file:

  1. Select File > New (Advanced) or click the New File (Advanced) hot button: New File

    If you have unsaved changes in the configuration shown in the tree, you will be prompted to save them.

    A new configuration will be created in the tree with a single root element, <config>.

  2. Each configuration file requires at least one <instance> element. You will need one instance for each connection to a c-treeRTG server.

    To add a new instance, right-click on the <config> root element and select Add New Element > Instance. The New Instance dialog appears so you can enter the basic information needed for specifying the c-treeRTG server.

    New Instance

    Note: If your environment includes more than one c-treeRTG server, you will need to create an instance for each one. Each instance will be directly under the root <config> element. To add another instance, right-click the <config> element and select Add New Element > Instance.

  3. Fill in the fields listed in this dialog:

    Server - Specifies the server name and the host name of the c-treeRTG to connect to. The format can be one of the following syntaxes:
    servername
    servername@hostname
    servername@IPaddress
    If the host name or the IP address is omitted, host name defaults to localhost.

    User - Specifies the c-treeRTG user name.

    Password - Specifies the c-treeRTG user password.

    Connect - Choose the desired setting to indicate whether to connect to c-treeRTG at runtime initialization or wait for the first OPEN operation.

    • Not Set - Use the default value.
    • Yes - Connect at runtime initialization.
    • No - Connect during the first OPEN operation. This is the default value.

    Versioncheck - Choose the desired setting to indicate whether to check that the c-treeRTG version matches the c-treeRTG version.

    • Not Set - Use the default value.
    • Yes - Turn on version matching check. Versions must match exactly otherwise an error is returned at runtime initialization.
    • No - Turn off version matching check. This is the default value.
  4. A file dialog will allow you to select a folder and file name for the configuration file.

The new configuration file will be displayed in the RTG Config showing the instance you created. You may now add elements as described in the subsequent sections, Editing a Configuration File.

TOCIndex