PreviousRunning Convert3 Convert3 and File Conversion Program Error MessagesNext"

Chapter 10: Using the File Conversion Program

When you have generated the file conversion program for an RM/COBOL data file, the next steps in converting the data file are to:

  1. Submit the file conversion program to this COBOL system to produce an executable file

  2. Run the file conversion program.

10.1 Creating an Executable File Conversion Program

To create an executable file, submit your program to this COBOL system as you would any other COBOL program. Your Object COBOL User Guide contains details.

If the file conversion program requires a subroutine to determine a type of record in a file with different types of records, remember to write and create executable code for the subroutine before you try to run the file conversion program.

10.2 Running the File Conversion Program

You can run the file conversion program in either interactive or batch mode.

To run the file conversion program in interactive mode, you supply the name of the file after the run command for this COBOL system. This is the same as running any other program. Your Object COBOL User Guide contains more information.

This command causes the display of the following prompt:

Please enter the input data file name 

Enter the name of the RM/COBOL data file to be converted and press Enter. This file must be the file for which this file conversion program was generated.

Now the following prompt is displayed:

Please enter the output data file name 

Enter the name of the COBOL system's data file to which the RM/COBOL data file is to be converted and press Enter. This name must not be the same as the RM/COBOL data file.

If any errors occur during conversion, an error message is displayed on the screen.

To run the file conversion program in batch mode, you use the run command for your COBOL system, but before you press Enter type:

program-file input-file output-file

where the parameters are:

program-file The intermediate or native code file for the file conversion program
input-file The name of the RM/COBOL data file to be converted
output-file The name to be given to the converted data file.


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

PreviousRunning Convert3 Convert3 and File Conversion Program Error MessagesNext"