Rational Developer for System z

Setting preferences for features

You can define and customize the features available to your generated COBOL programs. Some predefined features are provided.

About this task

You can list your current features for COBOL generation and add new features. You can resequence, rename, exclude from the COBOL Program wizard, or delete some or all of the features. You can export features (including ones that you created) so that they can be shared, and you can import features. You can also restore all features to their product defaults.

Procedure

  1. Click Window > Preferences > COBOL > Features. A list of the currently configured COBOL features is displayed. The default features are as follows:
    • Use BMS Maps
    • Invoke CICS commands
    • Use SQL statements
    • Handle SQL error return codes
  2. Perform one or more of the following tasks:
    Task Steps
    Change the order of the list
    1. Select the name of a feature.
    2. Click the Up button or the Down button.
    Add a feature to the list
    1. Click the New button. A "New feature" window is displayed.
    2. Type the name of the new feature, and click OK.
    3. For each feature, you can define and customize the code that you want to insert into each section of your COBOL program (for example, the Working Storage section or the Procedure Division). In the tabbed editors for each section, enter the code to define each feature. The tabs are as follows:
      • Environment
      • File
      • Working Storage
      • Local Storage
      • Linkage
      • Procedure
    4. Click Apply.
    Rename a feature
    1. Select the name of a feature, and click the Rename button. A "Rename feature" window is displayed.
    2. Type the new name, and click OK.
    Exclude a feature
    1. Clear the check box. You do not need to delete the feature.
    2. Click the Apply button.
    Delete one or more features
    1. Select the name of a feature, and click the Delete button. A "Confirm delete" window is displayed.
    2. Click Yes.
    Save one or more features to a file
    1. Click the Export All button, or select one or more features and click the Export button. An "Export COBOL features" window is displayed.
    2. Specify the location and file name of the XML file to be created, and click Save.
    Use features from an existing XML file
    1. Click the Import button. An "Import COBOL features" window is displayed.
    2. Select an XML file, and click Open.
    Restore the COBOL feature defaults
    1. Click the Restore Defaults button. An "Confirm Restore Defaults" window is displayed.
    2. Click OK. All COBOL feature customizations are removed, the product defaults are restored.
  3. Click OK.

Feedback