GNU COBOL compiler and the zOS COBOL complier. GNU wins?
Posted: Thu Nov 05, 2015 2:59 pm
Hi,
I was running some COBOL progrms using GNU COBOL to see how it all goes. The results are pretty good so far however I have run into one glitch which is confusing me. It is in a data definition. Please consider this example:
The GNU COBOL compiler shows an error on the "12 DD", the error message:
This message seem correct to me. While the compile listing on z/OS does not does not have any error flagged like this. I think, IBM compiler has inserted a FILLER type entry to make the above look like:
Does anybody know, for sure, what the IBM compiler is doing with this?
I was running some COBOL progrms using GNU COBOL to see how it all goes. The results are pretty good so far however I have run into one glitch which is confusing me. It is in a data definition. Please consider this example:
Code: Select all
01 AA
10 BB
15 CC1
15 CC2
12 DD
15 EE1
15 EE2
10 FF
Code: Select all
Warning: No previous data item of level 18
Code: Select all
01 AA
10 BB
12 FILLER
15 CC1
15 CC2
12 DD
15 EE1
15 EE2
10 FF
Does anybody know, for sure, what the IBM compiler is doing with this?