gnucobol-users
[Top][All Lists]
Advanced

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

[open-cobol-list] OC issues - number 3


From: Sergey Kashyrin
Subject: [open-cobol-list] OC issues - number 3
Date: Tue Jan 17 10:42:05 2006

Hi again.

All of that is about compatibility with MAJOR compilers (390, AS/400, MF, FJ) 
in a situations when program is possibly incorrect.

      IDENTIFICATION DIVISION.
      PROGRAM-ID. ztest INITIAL.
      ENVIRONMENT DIVISION.
      DATA DIVISION.
      WORKING-STORAGE SECTION.
      01 A PIC S9(4) COMP.
      01 B PIC S9(4) COMP VALUE 1.
      01 C PIC S9(4) COMP VALUE 1.
      PROCEDURE DIVISION.
          COMPUTE A EQUAL B + C.
          DISPLAY A.
          GOBACK.


OC gives an ERROR and not producing the code:
ztest3.cbl:10: Error: syntax error, unexpected EQUAL

All other Cobols are accepting

Regards,
Sergey



reply via email to

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