× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



No Bob, your idea of ILE is correct, you just have not gotten that far in the
book yet :-).

The example you are experimenting with is just introducing you to the basis
structure of subprocedures.

Yes, you will have the subprocedure in a seperate source (though usually you
will have multiple subprocedures in a seperate source).

To get your original example to work........

Make sure that the procedure has a NoMain keyword on the H Spec.
Compile the procedure using the CRTRPGMOD command.
Create a Service Progam from the module you just created.
Specify the service program when compiling the program.

Regards

Paul Tuohy

"Bob O." wrote:

> I guess my idea of ILE was wrong.  I was under the impression that all of
> the subprocedures were supposed to be in seperate source members that were
> accessed by the main procedure.  It almost seems like a waste.  Wouldn't it
> be easier just to leave it in a subroutine?
>
> Or, do other programs access those subprocedures even though they are
> contained within the main procedure?  Or am I totally screwed up?
>
> >From: Paul Tuohy <tuohyp@attglobal.net>
> >Reply-To: rpg400-l@midrange.com
> >To: rpg400-l@midrange.com
> >Subject: Re: New to ILE
> >Date: Sun, 06 Oct 2002 20:50:22 +0100
> >
> >Hi Bob,
> >
> >It looks as if you have coded the DATEMAIN1 program (Section 3.4.4) as two
> >source members - correct?
> >
> >They should be coded as one - the main program, immediately followed by the
> >Day
> >of Week subprocedure.
> >
> >You can save yourself some typing by downloading the source for the red
> >book -
> >you should find the link on the same web page as the book.
> >
> >Regards
> >
> >Paul Tuohy
> >




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.