mykovalenko / legstar-cob2xsd

Automatically exported from code.google.com/p/legstar-cob2xsd
Other
0 stars 0 forks source link

Support free format COBOL #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The parser currently only supports fixed format COBOL which applies to IBM z/OS 
entreprise COBOL.

Fixed format COBOL is organized like this

<---->|<--><---------------------------------------------------------->
  |   | |     |
  |   | |     +-- Columns 12-72 - Area B
  |   | +-- Columns 8-11 - Area A
  |   +-- Column 7 - Indicator Area
  +-- Columns 1-6 - Sequence Numbers

Microfocus and XOpen COBOL also accept the popular free format which has the 
following characteristics:

The first six characters are considered part of the normal source line and may 
contain COBOL source code. Column 1 takes the role of the indicator area as 
follows:

*   comment line
/   comment line starting on a new page in the listing file
D or d  followed by space, debugging line
$   special line (for example, directive, conditional compilation)
any other character normal source line
There are no continuation lines. Continuation of alphanumeric literals is 
achieved through concatenation (for example, "A" & "B").

There is no distinction between area A and area B.

There is no fixed right margin.

We need to support this free format.

Original issue reported on code.google.com by fady.mou...@gmail.com on 26 Jul 2010 at 7:20

GoogleCodeExporter commented 9 years ago

Original comment by fady.mou...@gmail.com on 16 Aug 2010 at 5:44