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

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.