|
I think that you misunderstood me.
A global variable only exists and are shared by sub procedures within the
program/service program so there is no way you can update a global variable
in a service program from the main program unless you either have a sub
procedure within the service program that updates the global variable in
the service program or you know the storage address to the given variable.
On Tue, Jul 8, 2014 at 3:58 PM, Gqcy<gmufasa01@xxxxxxxxx> wrote:
Henrik,
yes, CGIDEV2, HTTPAPI, powerEXT
will "run", but if I would use
one of those global variables in my code
that binds to those subprocedures it may cause unpredictable results...
On 7/8/2014 8:48 AM, Henrik Rützou wrote:
Buck--
this is very easy - take middleware service programs as CGIDEV2, HTTPAPI
or
powerEXT. They all have a lot of subprocedures that shares global
variables
within
the service program and general storage allocations otherwise they could
not run.
On Tue, Jul 8, 2014 at 3:22 PM, Buck Calabro<kc2hiz@xxxxxxxxx> wrote:
On 7/8/2014 4:46 AM, D*B wrote:
Additinal note:
global data and coupling procedures by global data is not bad design!
Bad design is to define data global, which is needed only local!!!
Hi Dieter,
This surprises me, which means I probably do not understand what you
mean. Could you please give an example of good design that couples
subprocedures with global variables?
--buck
--
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.
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 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.