|
From: John R. C. <jo...@we...> - 2005-08-04 18:23:35
|
I have narrowed down my parse error to the following circumstance. When I create a template program for COBOL I cannot include the following: 000150 INPUT-OUTPUT SECTION. 000160 FILE-CONTROL. Unless I also include at least one SELECT statement. In other words the following causes an error: 000070 ENVIRONMENT DIVISION. 000080 000090 CONFIGURATION SECTION. 000100 SOURCE-COMPUTER. Linux. 000120 OBJECT-COMPUTER. Linux. 000140 000150 INPUT-OUTPUT SECTION. 000160 FILE-CONTROL. 000170 000180 DATA DIVISION. ... but the following does not: 000070 ENVIRONMENT DIVISION. 000080 000090 CONFIGURATION SECTION. 000100 SOURCE-COMPUTER. Linux. 000120 OBJECT-COMPUTER. Linux. 000140 000150 INPUT-OUTPUT SECTION. 000160 FILE-CONTROL. 000170 SELECT PRINTFILE ASSIGN TO PRINTER. 000180 DATA DIVISION. 000190 In the latter case the absence of a matching FD statement does not cause an error. OTOH OpenCobol allows the first configuration without complaint. I like that better. -- John Culleton |