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



Thanks to all who replied.
I have placed the second module in the first and everything is working fine.
The reason that I had original made separate modules was to make the second 
module available to other programs at a later date.
I have changed it to a /Copy member and will use that method in the future.
 


"Hauser, Birgitta" <Birgitta.Hauser@xxxxxxxxxxx> wrote:
Hi Jeff,

a procedure is either internal or exported.
Internal means it can only be used in the module where it is defined.
Exported means it can be used by all procedures independend in which module
the caller procedure is located.

But there is no way to restrict the use of a procedure to a single service
program that consists of several modules.

I'm not sure that using the binder language in the way you aimed will work
as you expect.

Wouldn't it be possible to put both modules into the same source (module)?

Birgitta

-----Ursprüngliche Nachricht-----
Von: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] Im Auftrag von Jeff Young
Gesendet: Montag, 29. August 2005 17:06
An: midrange-l@xxxxxxxxxxxx; rpg400-l@xxxxxxxxxxxx
Betreff: Create Service Program

Brain freeze time.
I am attempting to create a service program consisting of 2 modules.
Module 1 uses a procedure in Module 2.
The binding directory for the service program specifies both Module 1 and
Module 2.
The CRTSRVPGM command fails with a message indicating that it can not find
the procedure Module 2 in Module Module 1.
The prototype for Module 2 specifies ExtProc('Module 2').
The only way to get the service program to create is to specify Export on
the procedure in Module 2.
The problem with this is that the procedure Module 2 is then available to be
used outside the Service Program.
I could use Binder language and specify the specific procedures to export,
but would prefer not to.

All suggestions are welcome.




Jeff Young 
Sr. Programmer Analyst
Dynax Solutions, Inc.
IBM -e(logo) server Certified Systems Exper - iSeries Technical Solutions
V5R2 
IBM Certified Specialist- e(logo) server i5Series Technical Solutions
Designer V5R3

IBM Certified Specialist- e(logo)server i5Series Technical Solutions
Implementer V5R3










__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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.