opensourcecobol / opensourcecobol4j

A new version of opensourcecobol. Translate COBOL to Java.
https://opensourcecobol.github.io/opensourcecobol4j/
GNU General Public License v3.0
67 stars 31 forks source link

STOP statements with string literals do not work. #160

Open yutaro-sakamoto opened 1 year ago

yutaro-sakamoto commented 1 year ago

STOP statements in the following program do nothing.

  ******************************************************************
   IDENTIFICATION              DIVISION.
  ******************************************************************
   PROGRAM-ID.                 TEST41.
   AUTHOR.                     USER01.
   DATE-WRITTEN.               2023-05-10.
  ******************************************************************
   ENVIRONMENT                 DIVISION.
  ******************************************************************
   DATA                        DIVISION.
  ******************************************************************
   WORKING-STORAGE             SECTION.
  *
   01  WK1                     binary-long.
  ******************************************************************
   PROCEDURE                   DIVISION.
  ******************************************************************
       STOP "A".
       STOP "ー".
       STOP " ".
yutaro-sakamoto commented 1 year ago

Although GnuCOBOL supports STOP statement with a literal, opensource COBOL does not support the function. The priority of implementing the function is low.