Arnold Trembley wrote:
> On 5/4/2013 9:56 AM, Pete Dashwood wrote:
>> Frank Swarbrick wrote:
>>>
http://www-01.ibm.com/common/ssi/ShowDoc.wss?docURL=/common/ssi/rep_ca/4/897/ENUS213-144/index.html&lang=en&request_locale=en
>>
>>
>> Nice to see the mainframe catching up with facilities like XML and a
>> movable comment indicator... :-)
>>
>> Before you know it they'll be using mixed case...
>> (SNIP)
>
> I'm pretty sure IBM has supported mixed case since at least VS-COBOL
> II, or roughly 20 years now. COBOL is not case sensitive for its
> keywords and user defined names.
>
> As a style convention I still see mostly upper-case COBOL, with
> displayed messages in mixed case (which I use quite often).
My point was that no-one USES mixed case; I know it has been available on
mainframes for a while. :-)
I switched to coding COBOL in lower case when I first started writing PC
COBOL with Micro Focus Workbench back on 16 bit. I moved to using Camel Case
for datanames (avoiding hyphens) when I switched to Fujitsu and started
writing OO COBOL components. I use Camel Case in C# as well. It's all really
what you're used to, but I have had mainframe people say they found it
difficult to read lower case. Convert exactly the same code into upper case
and suddenly it all becomes clear... :-)
>
> I don't have a need to call C Library routines, but I suspect the
> rules for matching case would be a bit more restrictive with external
> names.
>
Yes, I would think so.
I call C# from COBOL (and vice versa) without any problem at all but I make
sure that components used in this way are COM compliant. C# doesn't mangle
names as far as I can tell.
I think the important thing here is the support for the instruction set,
which just seems "right".
I notice they have made no attempt to implement the 2002 standard fully. If
they were really committed to a COBOL future, I would have thought they
would do that.
Mainframes are still a $20 billion dollar industry apparently so I guess it
won't hurt them to improve the COBOL.