|
AFAIK, the only way to make a procedure known outside of its own module is to export it. Binder language can be used for procedure and/or data hiding...I don't know if you have options. But...if the procedure in Module2 is only used by a procedure(s) in Module 1, why is it in a seperate module? > -------- Original Message -------- > Subject: Create Service Program > From: Jeff Young <cooljeff913@xxxxxxxxx> > Date: Mon, August 29, 2005 11:05 am > To: midrange-l@xxxxxxxxxxxx, rpg400-l@xxxxxxxxxxxx > > 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 > -- > This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list > To post a message email: MIDRANGE-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/midrange-l > or email: MIDRANGE-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/midrange-l.
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.