gnucobol-users
[Top][All Lists]
Advanced

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

[open-cobol-list] Missing . after data definition


From: Erwan Duroselle
Subject: [open-cobol-list] Missing . after data definition
Date: Tue, 18 Oct 2016 21:44:40 +0200

Hi,

Sometimes, programmers forget to add a dot sign after data definition in working area , like:
  1200  01  L-DEMA3     PIC X.
  1201  01  W-PROG      PIC X(10)
  1202  01  W-MONTZ             PIC Z.ZZZ.ZZZ.ZZZ.ZZ9,99.

which leads to an error when compiling (gnuCobol 2.0 RC1):
MYPROG.cbl: 1202: error: syntax error, unexpected Literal, expecting EXTERNAL or GLOBAL

On our legacy compilers, cobol/400 and Microfocus, this is just a warning, something like "Warning: period missing, period assumed"

Is there some setting in gnuCobol to transform this error into a warning?

Regards,
Erwan


reply via email to

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