|
Glenn, Use an array. Strip the last three digits of the field name and use that as the index of the array.Regards,Carel Teijgeler *********** REPLY SEPARATOR *********** On 16-6-05 at 15:51 Glenn Gundermann wrote:I hope my example below is clear. I have one file with many records for a given part, each containing just one value. I want to update another file to hold all the values for one part on one record. E.g.Input File: 3 fields: key + field name + value ----------------------------------------------- PARTA INV001 30 PARTA INV003 40PARTA INV007 50I want the output file to look as follows: key + values --------------------------------------------------------PARTA 30 <blank> 40 <blank> <blank> <blank> 50There are a possibility of 999 different fields so I don't want to code a complicated SELECT.
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.