×
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.
Hi Booth,
The PI is equivalent of the *Entry parm declarations. The PI must only be used in the program being CALLED.
The PR is used by CALLERS who need to execute your program. The /Copy member will contain the Prototype, and any "data type" (D-specs) definitions that need to be known to the caller in order to successfully call the program.
-Eric DeLong
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Booth Martin
Sent: Thursday, June 27, 2013 7:18 PM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Re: EXTPGM() in PR/PI
I figured out my problem, once folks made it clear I was on the right
track. It works. But I haven't yet figured it out.
As soon as I commented the PI statements in the /copy source statement
then everything worked So, when does one use the PI? To what purpose?
On 6/27/2013 4:13 PM, Jon Paris wrote:
If you use a variable name then that variable must be defined in the program.
Jon Paris
www.partner400.com
www.SystemiDeveloper.com
As an Amazon Associate we earn from qualifying purchases.