Missing . after data definition

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

 



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

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
open-cobol-list mailing list
open-cobol-list@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/open-cobol-list

[Index of Archives]     [Gcc Help]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Info]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux