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



Scott,
I may have been referred to that but it always worked across activation
group boundaries as I had many applications doing this for years. Then in
V4.5 or V4.4 a PTF was installed that changed that. Perhaps it was an
undocumented feature. 
IBM's response to this change was "We don't know what was changed in Version
4 Release 4 that caused it to stop working, but this is the way it was
intended to work all along."

Bob Cozzi
Cozzi Consulting
www.rpgiv.com


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Scott Klement
Sent: Friday, January 09, 2004 10:17 AM
To: RPG programming on the AS400 / iSeries
Subject: RE: Exported/imported variables


As far as I know, this function has always been referred to as "exporting
to the activation group" and "importing from the activation group" this
isn't something new that happened in V4, I remember this terminology from
V3R1 when I first learned ILE.

If you think about it, it does not make sense to reference an export from
another activation group.  Allocations are made at the activation group
level -- when an activation group ends, the data gets deallocated.

Therefore, if you imported data from a different activation group, you'd
run the disk of having your variable point to unallocated space if that
activation group ended before yours did.  Or worse, you could end up
referring to memory that was allocated to another function without even
knowing it!

I'm confident that the documentation back in V3R1 said that you could not
use IMPORT/EXPORT to get data from another activation group.  If the
compiler let you, then THAT was what was broken, NOT the current releases.

Just my opinion, of course.


On Thu, 8 Jan 2004, Bob cozzi wrote:

> You can EXPORT from a SERVICE PROGRAM and IMPORT to a PROGRAM, but not the
> other way around.
> And in V4R4 or R5 IBM  "broke" this capability by requiring the SERVICE
> PROGRAM to run in ACTGRP(*CALLER).
>
>
> Bob Cozzi
> Cozzi Consulting
> www.rpgiv.com
>
> -----Original Message-----
> From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
> On Behalf Of ile rpg
> Sent: Thursday, January 08, 2004 12:54 PM
> To: rpg400-l@xxxxxxxxxxxx
> Subject: Exported/imported variables
>
> I know how to export and import variables across modules (which are either
> explicitly or implicitly bound).
>
> I'd like to to share values with a service program.  Yes, I know that's
what
>
> parameters lists are for, and no, it doesn't make sense for such a
> capability to exist.  Yes, I could bite the bullet and use CALLB, and no,
it
>
> wouldn't kill me if I did.  But I'm asking, just in case I've missed
> something, because the service program in question will be used in many
> programs and will be changed regularly.
>
> Thanks...
>
> _________________________________________________________________
> Expand your wine savvy ? and get some great new recipes ? at MSN Wine.
> http://wine.msn.com
>
> _______________________________________________
> This is the RPG programming on the AS400 / 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 AS400 / 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 AS400 / 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.