Viewing Error Logs
The COBOL conversion utility produces a set of error and warning logs with messages that identify nonstandard code styles and inconsistencies. The utility also logs expansion actions that may require manual review.
The utility produces the following logs:
| Field or Control | Description |
|---|---|
|
Exception log |
This log contains warnings that occurred because of ambiguous working storage definitions. You may need to modify code or add utility directives to resolve the issues logged. |
|
Exception BIND/SELECT log |
This log contains warnings and errors that occurred because of ambiguous BIND and SETUP definitions. |
|
Exception date log |
This log lists all group-level date fields that are detected by the utility. |
|
Summary log |
This log provides general statistics regarding the number of programs that are processed. |
When you specify the -4 flag, you see only the summary log. Set the -rd flag on the conversion utility command line if you want the utility to produce all of the detail logs: exception, BIND/SELECT, and exception date.
Messages from the Exception Log
The following tables summarize all of the messages that can appear in the three exception log files. Errors indicate problems that are encountered by the conversion utility.
| Message | Type | Note |
|---|---|---|
|
Non-matching conversion block found in line line number. |
Error |
Detected the NOCBGN directive, but couldn’t find the corresponding NOCEND. |
|
Error in determining numeric length in line line number. |
Error |
Couldn’t decipher the numeric PICTURE clause. |
|
The size of the one character array will be expanded in line line number. |
Warning |
Detected a one-character array where the field contains the string -BYTE, -POS, or -CHAR. |
|
A one-character array is found in line number. The conversion routine will expand this to PIC X(3). |
Warning |
None. |
|
Unable to find the copy library copy library name. |
Error |
Couldn't locate the copy library file that the program references. |
Messages from the Exception BIND/SELECT Log
The following table lists messages from the BIND/SELECT log:
| Message | Type | Note |
|---|---|---|
|
Didn't find the corresponding DATA section for DATA field name in line line number. |
Error |
Detected either a BIND-DATA or a SELECT-DATA, but cannot find the SETUP group field. |
|
No delimiter found on group field name section in line line number. |
Warning |
Didn’t find a FILLER field with a value Z in a DATA or SETUP group field. |
|
Unable to convert the group field name section due to problems reading the Copylib. |
Error |
Couldn't locate a copy library that DATA or SETUP references. |
|
The group field name found in line line number has a mismatch count. |
Warning and error |
The number of columns in DATA doesn’t match the count for the corresponding SETUP. |
|
Incompatible date type match for field in lineline number. |
Error |
The data type definition in SETUP doesn’t correspond to the data type in DATA. |
Messages from the Exception Date Log
The following table lists messages from the exception date log:
| Message | Type | Note |
|---|---|---|
|
Date/time/datetime detected and will not be expanded in line. |
Warning |
None. |
|
Verify if a date/time/datetime field in line number: line number. |
Warning |
Found a character-type field or group field with a total length of 10, 15, or 26 that could be a date, time, or datetime. |