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