|
>> Along the same lines....is it possible to have a main procedure in a module that was used to create a service program? and, how would you call it, if it's not a PEP? Yup - folks do it all the time. The PEP is just a consistently named entry point that the OS can be sure exists in an ILE PGM object. So the OS calls the PEP because it knows where the "real" mainline starts and (more importantly) what it is called. All main procedures are implicitly exported so it can be called directly by name whether bound by copy or bound by reference as in a service program. That said - it's not as efficient as coding as a subproc because you still have cycle overhead. Procedures-only modules can use NOMAIN to avoid this. Jon Paris Partner400
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.