|
Hello Buck, You wrote: >PR is defining a procedure. Basically, it is calling the entire program a >procedure. No. PR is defining a PROTOTYPE. Both procedures and programs can be prototyped. The prototype is simply a definition of the call interface. PI defines a procedure. An ILE program comprises one or more procedures so using PI to replace *ENTRY PLIST is simply defining the main procedure of the program. The compiler will automatically create a program entry point procedure (PEP) thus any ILE program will contain at least two procedures (even in OPM emulation mode i.e., DFTACTGRP(*YES)) Confusion arises because of differences in behaviour when using DFTACTGRP(*YES) and DFTACTGRP(*NO). CRTBNDRPG and DFTACTGRP(*YES) requires that prototypes refer to program objects. DFTACTGRP(*NO) allows prototypes to refer to either programs or procedures using the EXTPGM and EXTPROC keywords. Given that you are writing an ILE/Activation Groups for Beginners series I thought you should be particular in your own use of the terminology. Regards, Simon Coulter. -------------------------------------------------------------------- FlyByNight Software AS/400 Technical Specialists http://www.flybynight.com.au/ Phone: +61 3 9419 0175 Mobile: +61 0411 091 400 /"\ Fax: +61 3 9419 0175 mailto: shc@flybynight.com.au \ / X ASCII Ribbon campaign against HTML E-Mail / \ --------------------------------------------------------------------
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.