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



"If you need to know info from the PR, then look for a PR that has the same name as the PI."

Well, look for a P-spec with a B notation with the same name as the PR (remember the potential for ellipses). The PI after the P-spec does not have to have a name on it.

e.g.
P isInternational...
P B
D PI n

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Tuesday, August 04, 2009 10:18 AM
To: RPG programming on the IBM i / System i
Subject: Re: Global variable search

Hi Vern,

First, a prototyped main is going to have PR in a certain position of D
specs. So you have a test for a prototype. Then the name will be the
same as the program - it will be 10 characters and somewhere near the
beginning of the D spec with PR in the right place.

The name doesn't have to be the same as the program. It also doesn't
have to be the same as the name of the module. You can make the name of
the prototype anything you want.

If you're trying to find the parameter list for a main procedure, you
just have to keep track of whether you've already seen a P-spec. If you
are outside of the P-specs (i.e. not between the Begin and End P-spec),
and you encounter a PI, it's the entry parameters for the main
procedure. Nothing to do with the name.

If you need to know info from the PR, then look for a PR that has the
same name as the PI.



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.