Good News Everybody!
The new search engine is LIVE!
Please report any problems to david (at) midrange.com.
|
Why can't you just
CPYF FROMFILE(SRCFILE) TOFILE(DSTFILE) FROMRCD(1) FMTOPT(*MAP *DROP)
Because that requires a lock on the source file... which I can't establish.
IMHO the only way is to add a column and store the relative
record no of the old file in this additional field
While I could add such a column to the target table...
it will stay there forever (which I would just like to avoid).
The source file (which has > 100 million records) is
still in use and will be updated continuously.
I already had the idea of using a user index to store the mapping,
this would avoid keeping the RRN in sync with the source table
and which I can throw away once finished (ie. this is a temporary
process so there's no issue about reorganizing the source table).
Sometimes you need to do crazy things and think out
of the box to accomplish great things (or fail ;-)
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2026 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.