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



Not quite sure I follow this discussion

For many years not setting on LR but doing RETURN, left the routine
open, all the variables with whatever values at the point of exiting the
routine, left all the files open etc, so that if you called the routine
again, it started up pretty much as it left off at the Return statement.


We're using this approach for a set of calls driven by a call sequence
file. Only thing to be careful of is to do Unlocks on any update files
in routines called but not setting LR. Otherwise a subsequent call to
another routine updating same file may get into record lock condition
Also be aware that *INZSR won't execute on subsequent calls to a non-LR
routine

Dave

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of James H. H. Lampert
Sent: 21 November 2013 22:12
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Re: INLR no longer required?

On 11/21/13 1:17 PM, Englander, Douglas wrote:

We are on V7R1. I just compiled a program that did not reference LR
anywhere. It compiled. I ran it, and it does not stop.

I should think that would be a problem: "does not stop" implies that it
keeps running indefinitely. The last time I checked, a Cycle program
(and all RPG programs are implicitly Cycle programs, whether they
actually ride it or not, unless they explicitly disable The Cycle) that
doesn't, at some point, set LR runs inside an endless loop.

--
JHHL
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.


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.