After upgrading from COBOL Copybook Plug-in 2.5 to 3.1, parsing errors are seen.

After upgrading from COBOL Copybook Plug-in 2.5 to 3.1, parsing errors are seen.

book

Article ID: KB0091113

calendar_today

Updated On:

Products Versions
TIBCO BusinessWorks COBOL Copybook Plug-in -
Not Applicable -

Description

Resolution:
Abstract:
==========
After upgrading from COBOL Copybook Plug-in 2.5 to 3.1, some parsing issues occur.

Description:
==========
Errors when parsing Copybook Schema (on BW 5.6.3 HF-1 and CCB 3.1.0 HF-1):

Line: 1, column: 44, item: PLANNED-OUTAGE-REJECT, error: The redefined item "PO-REJECT" is not immediately preceding the redefining item "PLANNED-OUTAGE-REJECT".

While on BW 5.4.2 and CCB 2.5.0, there is no such issue.

The Copybook Schema resembles the following:

       01  PLANNED-OUTAGE-REJECT REDEFINES PO-REJECT.

           05  PR-BGN02-TRANS-CR-REF-H   PIC X(30).

           05  PR-BGN03-TRAN-E           PIC X(8).

           05  PR-BGN06-TRANS-TU-REF-H   PIC X(30).

           05  PR-NT102-TU-NAME-T        PIC X(60).

           05  PR-NT104-TU-DUNS-C        PIC X(13).

           05  PR-NT102-CR-NAME-T        PIC X(60).

           05  PR-NT104-CR-DUNS-C        PIC X(13).

           05  PR-REF02-REJ-RESN-C       PIC X(3).

           05  PR-REF04-REJ-RESN-T       PIC X(80).

           05  PR-REF02-METER-H          PIC X(11).

           05  PR-REF03-ESI-ID-C         PIC X(17).

Environment:
==========
TIBCO ActiveMatrix BusinessWorks / All

Symptoms:
==========
When clicking the Parse button on the Copybook Schema:

Line: 1, column: 44, item: PLANNED-OUTAGE-REJECT, error: The redefined item "PO-REJECT" is not immediately preceding the redefining item "PLANNED-OUTAGE-REJECT".

Cause:
==========

The newer version of BW behaves correctly. The older version of BW does not comply with COBOL syntax as precisely as the newer version of BW.


Resolution:
==========
Prepend the following code:

       01  PO-REJECT PIC X(325).

Attachments:
==========
Filename: cobol-redefine.zip

Issue/Introduction

After upgrading from COBOL Copybook Plug-in 2.5 to 3.1, parsing errors are seen.

Attachments

After upgrading from COBOL Copybook Plug-in 2.5 to 3.1, parsing errors are seen. get_app