Source File Restrictions [ Micro Focus COBOL Compatibility Guide ] MPE/iX 5.0 Documentation
Micro Focus COBOL Compatibility Guide
Source File Restrictions
You should be aware of the following restrictions while using Convert5:
1. You must supply Convert5 with DG Interactive COBOL source code or
COPY-files that are syntactically correct.
2. You must make sure that no USAGE IS INDEX, REDEFINES
or RENAMESclauses appear in the record descriptions contained in
your source code. The interpretation of records that contain such
clauses is ambiguous and thus Convert5 is unable to handle them.
If your source code does contain record descriptions that use
USAGE IS INDEX, REDEFINES or RENAMES, before using Convert5 you
should first split such record descriptions into separate
descriptions. Next, before you try to convert the relevant files,
ensure that these records are identifiable, either by a record
type field or via a subroutine. You must write such a subroutine
yourself.
3. You will normally need to define the record structure of multiple
record files if Convert5 is to run successfully. See the chapter
Running Convert5 for details.
4. The Convert5 program does not interpret those statements in your
source program which begin with a continuationmark in column 7.
Convert5 returns an error if it detects such a marker in an area
of the source program which it needs to analyze.
5. The time order of duplicatealternate keys in indexed files cannot
be preserved when you convert such files.
6. FDand SELECT...ASSIGN entries can be contained in a COPY-file
provided the COPY statementis of the form:
COPY "filename"
7. Convert5 does not support any other form of the COPY statement.
8. The USAGE clauseis not supported for group level data-items.
9. The phrase DECIMAL POINT IS COMMAis not supported by Convert5.
10. As all data-namesin a record definition must be unique, you cannot
supply Convert5 with DG Interactive COBOL source code which
includes qualifiers in a record.
11. Convert5 assumes that any dependingname occurs in the same record.
12. No picture-stringmust be greater than 20 characters in length.
13. Composite picture-strings must not contain numeric characters.
If you supply Convert5 with DG Interactive COBOL source code that is
syntactically incorrect, it outputs an error message only if it detects
the syntax error. It will then close any open files and abandon the
conversion. However, Convert5 may not detect that the supplied code is
invalid and may proceed to create a file conversion program. If you then
run this program, it may convert data incorrectly. We thus strongly
advise that you ensure that the code which you supply to Convert5 is
syntactically valid.
We also advise that you supply Convert5 with a DG Interactive COBOL
source program which writes rather than reads the data file which you
wish to convert. This ensures that all of the necessary information
concerning the data files can be found in the supplied source program.
MPE/iX 5.0 Documentation