Running xddgen against a COBOL program caused it to fail with field-offset calculation error under the following conditions:
This problem has been fixed by forcing the key identification in first 01 level thus avoiding the output of key fields that do not belong to the proper level.