|
On 2018-03-16 1:43 PM, dlclark@xxxxxxxxxxxxxxxx wrote:
They are analogous in that they are both used to call procedures.
It just so happens that CALLP can also call external programs through a
prototype (CALLP doesn't always require a prototype so perhaps it is
mis-titled, now). Anyway, I'm just asking that CALLPRC also have the
ability to call external programs, but via a new parameter on the command
-- rather than having to make a much more extensive modification to
support full prototypes.
If the purpose of modifying CALLPRC is so you can use *OMIT for program calls, it seems like it would be more straightforward to ask to use *OMIT with the CALL command. I think it would be nicer to code
CALL PGM ('x' *OMIT 'y')
than
CALLPRC pgm ('x' *OMIT 'y') EXTPGM(*YES)
But what interests me most is that RPG allows *OMIT for prototyped calls to programs. It's not allowed for CALL+PARM, so it was probably a compiler bug that it was allowed for prototyped program calls. I guess it's a feature now ...
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.