× 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 for the correction, I really did mean module. Don't know what I was thinking...

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Rory Hewitt
Sent: Tuesday, May 17, 2011 12:27 PM
To: RPG programming on the IBM i / System i
Subject: Re: Can a subprocedure be defined within a subprocedure

Michael,

Technically, nothing outside the *MODULE can use it. Obviously this implies
that nothing outside the *SRVPGM can use it, but as you know, you could use
the EXPORT keyword (which would export procedures outside the *MODULE) but
then not export them from the *SRVPGM.

Minor difference in this context, but important to get it right :)

Rory

p.s. I know you know this, but I'm being picky.

On Tue, May 17, 2011 at 8:10 AM, Schutte, Michael D <
Michael_Schutte@xxxxxxxxxxxx> wrote:

No you cannot, however, if you are creating a service program, you can
leave the EXPORT keyword off the PSPEC begin and nothing outside of the
service program can use it. Only the procedures within the service program
can access it.

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

________________________________

Notice from Bob Evans Farms, Inc: This e-mail message, including any attachments, may contain confidential information that is intended only for the person or entity to which it is addressed. Any unauthorized review, use, disclosure or distribution is strictly prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message and any attachments.

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.