|
Let's suppose the name of the table (file) you want to update is
called "TEST" and the column (field) name to be updated is named
"LNUM"
#1. run a RGZPFM to ensure you compress out any deleted records.
NOTE: if you need the records to be kept in a certain order by key,
you can specify the KEYFILE parameter on the RGZPFM command.
#2. run the following SQL statement (e.g. using STRSQL):
update library/test set LNUM = RRN(test)
This will assign the "relative record number" for each row (record)
to the LNUM column (field) for each row (record).
<<SNIP>>
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.