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


  • Subject: Re: Parms in a called program
  • From: Paul Tuohy <tuohyp@xxxxxxxxxxxxx>
  • Date: Tue, 04 Apr 2000 18:13:34 +0100

Hi Booth,

No, it does not seem correct. A *ENTRY PLIST is a declarative, it is not
executable code. Therefore it makes absolutely no difference where in the C 
specs
it is defined. (You could even define it between an ENDSR and a BEGSR!).

If you are noticing a difference in behavior between the definition at the start
of the mainline and in the INZSR, then your problem is elsewhere.

If you are coding in RPG IV, you should be looking at a PI definition instead of
a *ENTRY PLIST. Good examples in the Red Book (and in my book).

HTH

Paul Tuohy

boothm@earth.Goddard.edu wrote:

> Does it make a difference where the *ENTRY is in a called program?  It
> seems that if the *ENTRY & PARMS are in the *INZSR they are only read
> once, at the beginning of the program but if the lines are in the
> beginning of the Mainline they are read every cycle?  In other words, if
> we call the program and then RETURN instead of setting on LR, when we call
> the program again the new set of parms don't get passed if the *ENTRY is
> in *INZSR but do get passed if in the Mainline?  Does that seem correct?
>
> _______________________
> Booth Martin
> boothm@earth.goddard.edu
> http://www.spy.net/~booth
> _______________________
> +---
> | This is the RPG/400 Mailing List!
> | To submit a new message, send your mail to RPG400-L@midrange.com.
> | To subscribe to this list send email to RPG400-L-SUB@midrange.com.
> | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator: david@midrange.com
> +---
>
> >From midrange-l-owner@uucphost.mcs.net Tue, 04 Apr 2000 01:37:33 +0000

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.