|
Thanks Paul. You cleared the fog a bit for me.
From: Paul Tuohy <tuohyp@attglobal.net> Reply-To: rpg400-l@midrange.com To: rpg400-l@midrange.com Subject: Re: New to ILE Date: Mon, 07 Oct 2002 06:54:21 +0100 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 > > _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l or email: RPG400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
99% of all computer problems are between the keyboard and the chair! _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx
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.