IBM Support

PH49855: ERROR [120] : THE LEXER DETECTED UNKNOWN COMBINATION: 'COPY'

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • Application Discovery fix pack level - 6.0.2 ifix2
    Getting following error,
    Error [120] : The Lexer detected unknown combination: 'COPY'
    
    for the following code snipped:
    
    ==================================================
               COPY BV1ERCIC.
    
               COPY BV1ERGEN
                    REPLACING GOBACK BY ==PERFORM
    D1000-TERMINATION==
    ==================================================
    

Local fix

  • Add a "." at the end of instruction - after the == signs:
    
               COPY BV1ERGEN
                    REPLACING GOBACK BY ==PERFORM
    D1000-TERMINATION==.
    

Problem summary

  • The Lexer detected unknown combination: 'COPY'
    At the compilation stage of project building, the above error
    was occurring when parsing a 'COPY ... REPLACING' statement on
    the last lines of a COBOL file.
    

Problem conclusion

  • A fix was applied in code, and now this issue is solved, and
    that error is not appearing anymore.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH49855

  • Reported component name

    AD MAINFRAME

  • Reported component ID

    5737B1610

  • Reported release

    602

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2022-09-28

  • Closed date

    2022-12-06

  • Last modified date

    2023-06-01

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    AD MAINFRAME

  • Fixed component ID

    5737B1610

Applicable component levels

[{"Business Unit":{"code":"BU011","label":"Systems - zSystems software"},"Product":{"code":"SG19O","label":"IBM Application Discovery"},"Platform":[{"code":"PF054","label":"z Systems"}],"Version":"602"}]

Document Information

Modified date:
02 June 2023