PreviousConvert3 and File Conversion Program Error Messages DG Interactive COBOL Source CompatibilityNext"

Chapter 12: Introduction to Conversion Series 5

You need to take the three steps listed below in order to convert your DG Interactive COBOL application so that it is suitable for input to this COBOL system:

  1. Use reform5 to reformat DG Interactive COBOL source programs written in DG Interactive COBOL CRT format.

  2. Submit your DG Interactive COBOL source programs to this COBOL system.

  3. Use Convert5 to convert existing data files from DG Interactive COBOL format to the format used by this system.

12.1 DG Interactive COBOL Source Programs

Your COBOL system includes certain language enhancements that allow you to submit programs written in DG Interactive COBOL directly to this COBOL system. Provided your DG Interactive COBOL source programs conform to the standard file format for your operating system, there should be no problems in submitting most of these programs to this COBOL system. You should ensure that the expansion of tab characters in literals is not significant to the operation of your program before it is processed by this COBOL system.

However, if your program is written in DG CRT format, you must reformat the source file before you submit it to your COBOL system. A source reformatting utility, reform5, is provided, and the chapters Reformatting a DG COBOL Source File and Converting DG COBOL Data Files describe how you use it.

You must set the DG directive when you submit your source code to this COBOL system if your source code contains DG Interactive COBOL features that are not supported in the standard Micro Focus COBOL language, or if user-defined words are reserved words in the Micro Focus COBOL language. Refer to your Language Reference for a list of Micro Focus COBOL reserved words, and for a full definition of all the syntax supported in the standard Micro Focus COBOL language. This manual also contains a full list of the additional DG Interactive COBOL features enabled in the Micro Focus COBOL language when you set the DG system directive. Your Object COBOL User Guide contains details of how to set this directive.

12.2 Converting Data Files

Convert5, the file conversion utility, converts specified indexed, relative or sequential data files, from DG Interactive COBOL format to the equivalent format used by this system. This ensures that when you run your DG Interactive COBOL programs in this COBOL environment, you can still access existing data files which they have produced.

In order to convert your data files, you must supply Convert5 with the source program which produced them.

The program that you specify must already be in a format that can be accepted by this COBOL system.

You do not need to convert line sequential files since they are already in a format that is compatible with this system's requirements.

12.3 Enhancing your Converted Application

Once you have successfully submitted your DG Interactive COBOL source programs to this COBOL system, you may wish to take advantage of some of the advanced features offered to you by the system. These features include:

Full details on these features and their associated syntax can be found in your Language Reference and Language Reference - Additional Topics.

In order to use these features you must specify certain system directives, when you submit your source programs to this COBOL system. For example, you must set the ANS85 directive if you use ANSI '85 syntax in your source programs. See your Object COBOL User Guide for full details of all system directives, and the features they enable.


Copyright © 1999 MERANT International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.

PreviousConvert3 and File Conversion Program Error Messages DG Interactive COBOL Source CompatibilityNext"