IMHO the only way is to add a column and store the relative record no of the
old file in this additional field ... and later use the column instead of
the relative record no.
... and what happens if ithe first file is reorganized? The relative record
no may have be changed!
Mit freundlichen Grüßen / Best regards
Birgitta Hauser
"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"
?Train people well enough so they can leave, treat them well enough so they
don't want to.? (Richard Branson)
-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Paul
Nicolay
Sent: Mittwoch, 11. August 2021 23:32
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: Write a record at a specific RRN
To be short... I'm trying to replicate a file with respect of the RRN
numbers.
And to make it more complex... I can't replicate it in sequential order, but
it needs to be random.
And second... the files don't have the same layout.
________________________________________
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> on behalf of John Yeung
<gallium.arsenide@xxxxxxxxx>
Sent: Wednesday, August 11, 2021 23:14
To: RPG programming on IBM i
Subject: Re: Write a record at a specific RRN
On Wed, Aug 11, 2021 at 4:40 PM Paul Nicolay <paul.nicolay@xxxxxxxxxx>
wrote:
The concept is that I don't know the file definition... ie. unique keys,
constraints, ... so writing dummy records is not possible as it might
violate the restrictions.
Even if it would work, once I write a dummy record I don't know if it is
"occupied" or not.
This is a very strange set of requirements you have. Can you describe at a
higher level what you are trying to do?
John Y.
--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a
message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit:
https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.midrange.com
--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a
message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit:
https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.