[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[open-cobol-list] OC issues (more)
From: |
Sergey Kashyrin |
Subject: |
[open-cobol-list] OC issues (more) |
Date: |
Tue Jan 17 10:20:17 2006 |
Hi again.
All of that is about compatibility with MAJOR compilers (390, AS/400, MF, FJ)
in a situations when program is incorrect.
IDENTIFICATION DIVISION.
PROGRAM-ID. ztest INITIAL.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
PROCEDURE DIVISION.
PERFORM 01-SUB.
PERFORM 02-SUB.
GOBACK.
01-SUB.
DISPLAY "TEST1 OK".
01-EXIT.
EXIT.
02-SUB.
DISPLAY "TEST2 OK".
01-EXIT.
EXIT.
OC gives an ERROR and not producing the code:
ztest2.cbl: In paragraph '02-SUB':
ztest2.cbl:16: Error: redefinition of '01-EXIT'
ztest2.cbl:12: Error: '01-EXIT' previously defined here
All other Cobols are accepting
----- Previous issue -----
IDENTIFICATION DIVISION.
PROGRAM-ID. ztest INITIAL.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 A.
05 FLD1 PIC X.
02 FLD2 PIC X.
PROCEDURE DIVISION.
DISPLAY "OK".
GOBACK.
OC gives an ERROR and not producing the code:
ztest1.cbl:8: Error: no previous data item of level 02
All other Cobols are accepting that
Regards,
Sergey
- [open-cobol-list] OC issues, Sergey Kashyrin, 2006/01/17
- RE: [open-cobol-list] OC issues, Bill Klein, 2006/01/17
- Re: [open-cobol-list] OC issues, Sergey Kashyrin, 2006/01/17
- RE: [open-cobol-list] OC issues, Bill Klein, 2006/01/17
- Re: [open-cobol-list] OC issues, Sergey Kashyrin, 2006/01/17
- RE: [open-cobol-list] OC issues, Bill Klein, 2006/01/17
- Re: [open-cobol-list] OC issues, Sergey Kashyrin, 2006/01/17
- RE: [open-cobol-list] OC issues, Bill Klein, 2006/01/17
[open-cobol-list] OC issues (more),
Sergey Kashyrin <=
- [open-cobol-list] OC issues - number 3, Sergey Kashyrin, 2006/01/17
- [open-cobol-list] OC issues - number 6, Sergey Kashyrin, 2006/01/18
- Re: [open-cobol-list] OC issues - number 6, Alain Lucari, 2006/01/18
- RE: [open-cobol-list] OC issues - number 6, Bill Klein, 2006/01/18
- Re: [open-cobol-list] OC issues - number 6, Sergey Kashyrin, 2006/01/18
[open-cobol-list] OC issues - number 7, Sergey Kashyrin, 2006/01/18