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



Thanks for the link. That answers it all.

On Mon, Apr 20, 2009 at 12:35 AM,
<J.Beckeringh@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi Alan,

The manual says it here <
http://publib.boulder.ibm.com/infocenter/systems/scope/i5os/index.jsp?topic=/rzasd/sc09250889.htm&tocNode=toc:rzahg/i5os/12/10/6/0/1/2/1/
. Storage is initialized on first call after the activation group is
created. So on repeated calls the old values should still be there.

I just tested it on 6,1, To my surprise it appeared that all storage was
initialized on every call. Then I realized I had ACTGRP(*NEW). Duh. When I
changed that, everything worked as expected.


Joep Beckeringh



rpg400-l-bounces@xxxxxxxxxxxx wrote on 19-04-2009 01:21:31:

In V6.1 we are going to get a new program model that will allow us to
use the keyword MAIN in the H spec to specify a sub-procedure that
will be the main procedure.

This eliminates the cycle code but one of the things I have read about
with this is that it eliminates the LR as it no longer has any
meaning.

How does this effect static storage? If I initialize a global variable
and return from the program is the value still there the next time I
call the program or is it gone?

In a service program, the static storage stays around until you close
the activation group. A similar thing here?

We don't have V6.1 yet so I can't test but have been curious about how
this is going to work. .

Thanks.
--
This is the RPG programming on the IBM i / System i (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.