[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[open-cobol-list] Program-Names (was] two more things
From: |
Bill Klein |
Subject: |
[open-cobol-list] Program-Names (was] two more things |
Date: |
Wed, 9 Aug 2006 08:44:42 -0500 |
Roger,
There was an interpretation request against the '85 related to
program-name resolution.
The answer was that CALL was supposed to be case IN-sensitive (whether using
call "literal" or call identifier). The Standard doesn't allow literals in
the program-id paragraph (except in the '02 Standard AS EXTERNAL phrase).
COPY statements are the same (i.e. case insensitive).
By this, I mean that
Call "aBc"
is supposed to FIND
Program-Id. Abc.
It is reasonable (and as MF does) to have directives to control this - and
the NEW (in '02 Standard) AS EXTERNAL is supposed to help, but you should
(at least) have an option to ignore case in CALL resolution.
> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden On
> Behalf Of Roger While
> Sent: Wednesday, August 09, 2006 6:39 AM
> To: address@hidden
> Cc: address@hidden
> Subject: [open-cobol-list] two more things
>
> 1) Can't help you. Presumably Sergey will answer.
>
> 2) Actually, according to the standard, user names
> (including program names) should be handled as lower case.
> However, it is stated that it is up to the implementor how
> names are exported to the environment (in absence of the AS clause).
>
> MicroFocus has the compile option FOLD-CALL-NAME to influence
> this, however, the default is not to mess around with the case.
>
> Generally speaking, it is safer and recommended to use
> upper case in program-id's. This reduces the likelyhood that
> you inadvertently call a C library routine :-)
>
> Roger
>
>
>
> --------------------------------------------------------------
> -----------
> Using Tomcat but need to do more? Need to support web
> services, security?
> Get stuff done quickly with pre-integrated technology to make
> your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on
> Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&
> dat=121642
> _______________________________________________
> open-cobol-list mailing list
> address@hidden
> https://lists.sourceforge.net/lists/listinfo/open-cobol-list
>