[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [open-cobol-list] Which formatting convention to use?
From: |
David Essex |
Subject: |
Re: [open-cobol-list] Which formatting convention to use? |
Date: |
Fri, 07 Aug 2009 14:19:14 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040618 |
Duke Normandin wrote:
....
I hear you. I have similar feeling with the Win-doze folks....
Their new motto is ...
If you can't beat'em with brilliance, beat'em with patents !
But I digress ...
BTW, I still have not found an explanation of how the free format
differs from the fixed. Is it only Col 1-6 that is done away with?
Well there are several variations.
OC follows what is defined the 2002 standard.
Here is a brief outline.
The columns 1-6, 73-80, legacy requirements have been removed.
Colum 72 no longer has special meaning.
Areas A and B are no longer required.
The special characters in columns 7 have been removed or replaced.
Some examples ...
The line comment character '*' in columns 7 has been replaced by the
to-the-end-of-the-line comment string '*>'.
While some compilers will allow a character '*' in columns 1,
to denote a line comment, OC will flag it as an error.
For multi-line value clauses one can use concatenation ('&') (ex. value
'abc' & 'cde').
There is a program called 'htcobf2f', included with TC, which will
convert COBOL sources to and from fixed/free formats.
Unfortunately it is not been updated to the COBOL 2002 standard.
Hope this helps.
Re: [open-cobol-list] Which formatting convention to use?, Gary Cutler, 2009/08/05
Re: [open-cobol-list] Which formatting convention to use?, John Culleton, 2009/08/06