|
I'm working on an embedded SQL command that would create a temporary
file of random records from another file. <<SNIP>>
Here's the SQL statement...
create table qtemp/F3003 as
(select IREFFF, rand() as idx
from QGPL/F3003
order by idx
fetch first 380 rows only
) with data
So, F3003 [<ed: in QGPL>] exists as a table with 50 fields, and some
40,000 records. This statement should create a new table in QTEMP
with 380 records, consisting only of the IREFFF field and a random
number [<ed: named>] as fieldIDX. <<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.