HP 3000 Manuals

Errors Reported by Convert5 [ Micro Focus COBOL Compatibility Guide ] MPE/iX 5.0 Documentation


Micro Focus COBOL Compatibility Guide

Errors Reported by Convert5 

Convert5 returns a result code to the calling program once it has
finished a run.  See the chapter Running Convert5 for details of the
calling program.  This result code is in the form of a three-byte number
in ASCII format.  If the first byte of this number is a 0, it denotes
that Convert5 has terminated its run successfully and has reported no
errors.  Any other number appearing as the first byte in the result code
indicates that Convert5 has detected an error.

If an error is reported, the first byte of the result code indicates the
type of that error as shown in the table below.

          Error Message Identification 
----------------------------------------------------------------------
|              |                    |                                |
| 1st Byte In  |  Result Value In   |           Error Type           |
|    Result    |  Remaining Bytes   |                                |
|     Code     |                    |                                |
|              |                    |                                |
----------------------------------------------------------------------
|              |                    |                                |
|      1       |         nn         |        Print file error        |
|              |                    |                                |
|      2       |         nn         |       Created file error       |
|              |                    |                                |
|      3       |         nn         |       Source file error        |
|              |                    |                                |
|      4       |         yy         | File entries (SELECT...ASSIGN) |
|              |                    |             error              |
|              |                    |                                |
|      5       |                    | Record description (FD) error  |
|              |                    |                                |
|      6       |                    |  Parameter description error   |
|              |                    |                                |
|      7       |         nn         |          Memory error          |
|              |                    |                                |
----------------------------------------------------------------------

nn      is the relevant run-time system error number; see your Error 
        Messages  manual for details.

yy      is one of the following:

        01=Multiple assign clauses found in file control entry
        02=Multiple reserve clauses found in file control entry
        03=Multiple organization clauses found in file control entry
        04=Multiple access clauses found in file control entry
        05=Multiple record clauses found in file control entry
        07=Multiple file status clauses found in file control entry
        08=Key word expected in file control entry but word found was
        "xxx" (where xxx is the actual word found) 10=External file name
        missing in assign statement 11=Data name defined in assign clause
        is a reserved word 12=Quote expected at end of external file-name
        20=Nonnumeric entry in reserve clause 30=Organization type not
        found in organization clause 32=Inconsistent file control entry
        40=Access mode not specified in access clause 41=Relative key is
        a reserved word in record clause 50=Record name is a reserved
        word in record clause 60=The word record expected in alternate
        key clause number 61=Data-name-3 is a reserved word in alternate
        record number 62=The words "with duplicates" expected in
        alternate record number 71=Data-name-4 is a reserved word in file
        status clause 90=Continuation found in file control section

If you receive an error code which starts with the number 5 or 6, it is
not followed by a number to identify a specific error.  Instead, these
errors are of a general nature and merely indicate that an error has
occurred in the record description or the parameter description
respectively.  If you receive one of these errors, you can detect its
specific cause by looking through the parameter list in the printfile.
If you did not specify a printfile, this parameter list is sent to the
screen.



MPE/iX 5.0 Documentation