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.