|
Hi Ron, OK. Yes, we use the two terms interchangeably but if we were being pedantic, there is a difference (at least as I understand it). A procedure would be the "mainline" of a program. When you issue a call to a program, the entry point is the PEP (Program Entry Procedure) or the Mainline in a specific module. If you use the CALLB operation to call another "module", you are calling the mainline (or PEP) in that module. Subprocedures are "sub" to the main procedure (PEP) in a module - if a PEP is defined. i.e. there is a mainline and you have not specified NOMAIN on the H Spec. But since all procedures/subprocedures can be exported - the terms are really interchangeable. HTH Paul Tuohy. Ron Hawkins wrote: > <No. A call can be issued to a procedure defined in the same module, > > > I guess my real question is how to tell the difference between a procedure > and a subprocedure. The book says subprocedures are defined after the main > procedure (which consists of H,D,C and O specs). Not that it really matters, > but it seems to me that what we are calling procedures are really > subprocedures and we are using the two terms interchangeably. > > +--- > | This is the Midrange System Mailing List! > | To submit a new message, send your mail to MIDRANGE-L@midrange.com. > | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. > | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. > | Questions should be directed to the list owner/operator: david@midrange.com > +--- +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.