COBOL

COBOL

COBOL

COBOL is responsible for the efficient, reliable, secure, and unseen day-to-day operations of the world's economy.

 View Only
Expand all | Collapse all

Why is my compilation failing? I didn't change the code or the SCLM language definition. It used to compile without errors.

  • 1.  Why is my compilation failing? I didn't change the code or the SCLM language definition. It used to compile without errors.

    Posted Wed June 17, 2020 01:58 AM
    Edited by Yuan Jie Song Wed June 17, 2020 02:02 AM
    Disclaimer: This post is migrated from IBM Developer Answers that is no longer in use. Its original author is BethAtIBM, posted on Mar 26, 2019.

    I have a COBOL program which I build in SCLM. Now, when I compile it, there is an error on every line of code. Some of the messages are:

    IGYDS0002-E A character other than "*", "D", "/" or "-" was found in column 7. Same message on line: 2 3 4 5 7 8 IGYDS0027-S Non-COBOL character(s) were found starting with "&" in column 8. IGYDS0001-W A blank was missing before character "." in column 23.


    -----------------------------------------------------
    Question asked by BethAtIBM on Mar26, 2019
    -----------------------------------------------------



  • 2.  RE: Why is my compilation failing? I didn't change the code or the SCLM language definition. It used to compile without errors.

    Posted Wed June 17, 2020 02:11 AM
    Edited by Yuan Jie Song Wed June 17, 2020 02:12 AM

    Check to see if the member is packed. Edit the member, and type PROFILE on the command line. Look for PACK ON in the profile lines. If pack is on, type PACK OFF, save the member and rebuild it. Packed data is not supported for COBOL compiles.

    This can happen both within and outside of SCLM. It can also happen with other languages, such as assembler. In assembler, you can get messages like this:

    ** ASMA003E Undeclared variable symbol; default=0, null, or type=U - ** ASMA141E Bad character in operation code - F....dcsectà.esr

    -----------------------------------------------------
    Answered by BethAtIBM on Mar 26, 2019
    -----------------------------------------------------