|
I agree that COBOL has some restrictions on naming etc but this
>> no support for passing parms to sub routines within a Cobol program.
Isn't one of them. There isn't any such support for RPG either - we use
subprocedures. The equivalent in COBOL is nested programs, and they take
parameters just as RPG subprocedures do.
Although COBOL limits the exporting of names (for reasons I don't
understand) it is actually more powerful in terms of public/global data etc.
than RPG. Within the context of one program - nested programs can
incorporate other nested programs (i.e. procedures having local procedures)
and can either share data with them or not at their discretion.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.