The File Conversion Process [ Micro Focus COBOL Compatibility Guide ] MPE/iX 5.0 Documentation
Micro Focus COBOL Compatibility Guide
The File Conversion Process
Once you have supplied Convert5 with the necessary parameters (see the
chapter Running Convert5 for details) it reads the specified source
program, and searches for certain key-words. It then extracts the
necessary information from the entries associated with these key-words.
The File-Control paragraph is the first entry for which Convert5
searches. This entry must be located in your main source file, and it
must start in margin A. Once Convert5 has found this entry, it looks for
the SELECT...ASSIGN statement relating to the file or record which you
wish to convert to Micro Focus COBOL format. This statement can be in
the main source file, or in a COPY-file.
Having read and extracted the relevant information from the File-Control
entry and the SELECT...ASSIGN statement, Convert5 searches for the
following key-words: FD, WORKING-STORAGE, LINKAGE and PROCEDURE. These
words, together with their associated entries, can be contained either in
the DG Interactive COBOL source file, or in a COPY-file.
Convert5 extracts the relevant information from all of the above
statements, which enables it to create a file conversion program. This
file conversion program is capable of loading a file in standard Micro
Focus format which has the same organization as that quoted in the
SELECT...ASSIGN statement in the original DG Interactive COBOL source
file.
If the description of the DG Interactive COBOL data file does not match
its actual format, when you try to run the file conversion program it
will report an appropriate error message and abort the current file
conversion. In this situation you must provide a source file description
that Convert5 is able to process.
MPE/iX 5.0 Documentation