[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnubol: COBOL and C
As a conversions expert, allow me to recommend against the use of USAGE
COMP as in the example below. COMP is known to be equivalent to USAGE
BINARY on MVS & VM, USAGE PACKED-DECIMAL on Wang VS, and USAGE DISPLAY in
some other implementations. COMP and the COMP-n variations are either
Extensions or specifically Implementor Defined, and should be avoided as
the plague (except if you want your employers/clients to eventually need my
services :-)
Jonathan
At 11:54 AM 12/1/99 +1000, Tim Josling wrote:
[stuff deleted]
>Here are some examples of the syntax:
>
>Function prototype:
>
>identification division.
>function-id. getc is prototype.
>linkage section.
>01 char pic s9(8) comp.
>01 file-handle pic s9(8) comp.
>procedure division using file-handle returning char.
>end-function.
>
------------------------------------------------------------
J & C Migrations, Pty.
566 Centre Street http://www.jcmigrations.com
Newton, MA 02458-2325 Tel. +1 (617) 916-5114
USA Fax. +1 (617) 916-5113
E-mail: mailto:jb@jcmigrations.com
--
This message was sent through the gnu-cobol mailing list. To remove yourself
from this mailing list, send a message to majordomo@lusars.net with the
words "unsubscribe gnu-cobol" in the message body. For more information on
the GNU COBOL project, send mail to gnu-cobol-owner@lusars.net.