V5R3, sigh....
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Ken Sims
Sent: Wednesday, September 05, 2007 9:49 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Map physical file's EXTNAME data structure over
it'slogicalfile'slikerec data structure
Hi -
On Tue, 4 Sep 2007 16:40:33 -0500, "Lim Hock-Chai"
<Lim.Hock-Chai@xxxxxxxxxxxxxxx> wrote:
I usually try to avoid global file DS within a service program.
However, if it is unsafe to overlay PF extname DS with logical likerec
DS, I might resolve into using global file DS.
If you are on V5R4, the new EVAL-CORR opcode might be of use. We just
got V5R4 installed on our development machine over weekend so I haven't
played with any of the new functionality yet.
I think you could chain to the LF data structures, but instead of having
the LF data structures overlay the PF data structure, use EVAL-CORR to
move the common fields. (CLEARing the PF data structure
first.)
Ken
http://www.kensims.net/
Opinions expressed are my own and do not necessarily represent the views
of my employer or anyone in their right mind.
--
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.