|
Mark, prototypes are meant to be used by both calling programs and the program itself (so for EXTPGM, the prototype should be in a /copy file). The EXTPGM keyword is really more for the callers anyway, so I think it should be hardcoded. For the program itself, if the command's PGM parameter and the EXTPGM parameter are different you just get a sev 10 message; the EXTPGM parm is ignored and the program gets created exactly the same as if you had the EXTPGM correct.
D MyPgm PR EXTPGM( 'MyRealPgm' ) /COPY MyRealPgm@
D MyPgm PI /COPY MyRealPgm@
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.