|
Way cool! Thanks! One additional note, I found I needed the correlation (Name) included in the statement as such, "UPDATE QTEMP/TEST test SET FIELDA = rrn(Test)" Regards, Jon A. Erickson Sr. Programmer Analyst 800.COM Inc. 1516 NW Thurman St Portland, OR 97209-2517 Direct: 503.944.3613 Fax: 503.944.3690 Web: http://800.com -----Original Message----- From: Rob Berendt [mailto:rob@dekko.com] Sent: Wednesday, April 26, 2000 3:32 PM To: MIDRANGE-L@midrange.com Subject: Re: how to add 10,000 records to new file with one field setequal tocounter Bravo! brobins3d@yahoo.com on 04/26/2000 05:23:29 PM Please respond to MIDRANGE-L@midrange.com@Internet To: MIDRANGE-L@midrange.com@Internet cc: Fax to: Subject: Re: how to add 10,000 records to new file with one field setequal tocounter RE: how to add 10,000 records to new file with one field setequal tocounterJoel, Here is one way to do it. SQL -> Create Table QTemp/Test (Fielda dec(5,0)) CL -> InzPFM file(QTemp/Test) totrcds(10000) SQL -> Update QTemp/Test Set fielda=rrn(Test) Bill ----- Original Message ----- From: Stone, Joel To: 'MIDRANGE-L@midrange.com' Sent: Wednesday, April 26, 2000 7:51 AM Subject: RE: how to add 10,000 records to new file with one field setequal tocounter Business problem: Salesperson file exists to validate salesperson ID during order entry. For testing, I wanted to populate the entire file with all possible salespeople (0001 thru 9999) so users can test application and not worry about entering an invalid salesperson ID. Any better ideas??? I was curious to know if this is possible on the /400 with a tool such as SQL or Query/400 or something else without writing a program! +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.