bug-gnucobol
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[open-cobol-list] Re: OC bug (CONTINUE)


From: Roger While
Subject: [open-cobol-list] Re: OC bug (CONTINUE)
Date: Tue Feb 28 00:06:12 2006

Yes, indeed.
Root of the problem is in parser.y where we ignore CONTINUE.
Therefore no handler gets installed for the CALL statement.
Looks like we need a CB_TAG_CONTINUE and, in codegen,
generate a dummy ";" statement. I will have to look at the implications
of doing this.

Roger

We are printing "libcob: cannot find module 'ABCDEF'" and exiting which is incorrect

      IDENTIFICATION   DIVISION.
      PROGRAM-ID.      prog.
      DATA             DIVISION.
      WORKING-STORAGE  SECTION.
      01  WS-PGM PIC X(8).
      01  A PIC X(8).
      PROCEDURE        DIVISION.
         PERFORM 4810-WRITE.
         DISPLAY 'Done'.
         STOP RUN.
      4810-WRITE SECTION.
          MOVE 'ABCDEF' TO WS-PGM
          CALL WS-PGM USING A
              ON OVERFLOW
              CONTINUE
          END-CALL.
      4810-EXIT.
          EXIT.

It is something to do with "CONTINUE"
If you change it to:
          CALL WS-PGM USING A
              ON OVERFLOW
              DISPLAY 'xxx'
              CONTINUE
          END-CALL.

it will work.

Didn't have a time to look at the problem yet, but I'll do when I have a time.

Regards,
Sergey






reply via email to

[Prev in Thread] Current Thread [Next in Thread]