-
Notifications
You must be signed in to change notification settings - Fork 38
Closed
Description
When converting COBOL code containing the SORT statement to Java, the following error occurs:
./SAMPLE.java:181: error: cannot find symbol
CobolFileSort.sortTableInit (1, 0);
^
symbol: method sortTableInit(int,int)
location: class CobolFileSort
./SAMPLE.java:182: error: cannot find symbol
CobolFileSort.sortTableInitKey (0, f_S__WORK$1, 0);
^
symbol: method sortTableInitKey(int,AbstractCobolField,int)
location: class CobolFileSort
./SAMPLE.java:183: error: cannot find symbol
CobolFileSort.sortTable (f_S__WORK$1, 200000);
^
symbol: method sortTable(AbstractCobolField,int)
location: class CobolFileSort
3 errorsReproduction
Environment: Ubuntu 22.04 (WSL)
Version of cobj: 1.0.16
Code
IDENTIFICATION DIVISION.
PROGRAM-ID. SAMPLE.
ENVIRONMENT DIVISION.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
SELECT SYSIN ASSIGN TO KEYBOARD ORGANIZATION LINE SEQUENTIAL.
DATA DIVISION.
FILE SECTION.
FD SYSIN.
01 INDATA PIC X(200000).
01 REDEFINES INDATA.
03 S PIC X OCCURS 200000.
WORKING-STORAGE SECTION.
PROCEDURE DIVISION.
OPEN INPUT SYSIN.
READ SYSIN.
CLOSE SYSIN.
SORT S ASCENDING S.
DISPLAY FUNCTION TRIM(INDATA).
STOP RUN.Command
cobj -free sample.cbl
Thank you!
yutaro-sakamoto
Metadata
Metadata
Assignees
Labels
No labels