|
I'm assuming you know that the dcl-pi inside a procedure is for that
procedure, and as far as I know you can only have one of those.
Additionally, the name is optional. In fact, I declare it with the name *n,
like so:
dcl-pi *n ind end-pi;
The declaration above is sufficient for any procedure with no parameters
that returns an indicator. I tend to have a few of those in my programs
(isInteractive, for example).
So that being the case, just think of your mainline as the "wrapper" for
your entire program. Again, you can only have one of those, but there the
benefit that you don't have to name it. So in your case, this would work:
dcl-pi *n;
Parm1 char( 1);
Parm2 char( 1);
Parm3 char( 1);
end-pi;
The big benefit to this being that this interface definition works for any
program with the same parameters.
Just me being lazy, I guess. :)
Joe
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.