× 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.



David,

at binding time (CRTPGM, CRTBND..., CRTSRVPGM) only those modules are bound, which are needed to resolve needed imports (prototypes or import keyword).
The risc with a central binding directory is to have the same export name more than once, then you will come in trouble. Good praxis is, to prefix all exports with the module name to guarantee uniqueness of export names, then it doesn't matter how many binding directories you are using. I prefer to specify all needed modules and Service programms with the crt command, it's better for readability. I write the CRT Statements as a comment to the source and have a little preprocessor (its Freeware and available at my WebSite bender-dv.de (sorry, the site is german, but this should be no problem for you, I suppose?). Another alternative would be to write make files (CL programms to compile single programms, or parts of the application).

Dieter Bender

--------------------------------------------------
From: "David FOXWELL" <David.FOXWELL@xxxxxxxxx>
Sent: Monday, January 17, 2011 10:13 AM
To: "RPG programming on the IBM i / System i" <rpg400-l@xxxxxxxxxxxx>
Subject: RE: Modules using NOMAIN, but not in a Service Program

Hello Birgitta,


-----Message d'origine-----
De : rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] De la part de Birgitta Hauser
if a module is bound directly to a program (either with or
without nomain
keyword) and you have to change your module (error /
enhancements) you have to rebind all programs where the
module is bound to.

That is, if you want all the programs to use the changed procedure(s) :-)!

In our programs only the PEP module is bound directly (i.e.
all programs are created with CRTBNDPGM and a binding
directory where all service programs are registered).

What do you mean exactly, Birgitta? Surely you must always have at least one main module? Is that what you mean by PEP module?
I think you mean CRTPGM not CRTBNDPGM.
You have only one bnddir for all programs? I once suggested this and my boss though I was having a laugh. I did try testing this a long time ago and I thought that that made binding very long. Do you not have this problem?
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.