× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi All,

 

I have a physical file from which I need to extract some data to use as
comparison for another routine.  Currently, the pf is set up like this:

 

RecordType

CodeA001

...

CodeA030

CodeB001

...

CodeB030

 

(It's not the way I would have set up the PF, but nonetheless...)

 

So when I read the table, there are records in it that are 61 fields
wide.  I need to take the data from all 60 of these fields (based on the
value of RecordType) and match up CodeA001, CodeB001 to populate another
table.  Essentially, I want to pivot the data because the structure of
the new table is:

 

RecordType

CodeA

CodeB

 

So instead of having a single record for the RecordType, I would have 30
records instead.

 

What's the easiest way to extract this data to migrate it to the new
table?  I mulled over a data area, throwing the files into an array,
throwing them into a temporary table, etc., but I'm not sure what's
best.  Fortunately, the tables used are static at 30 fields per code,
and are not expected to change, so I always know there are 30 fields for
CodeA and CodeB.

 

Any ideas?

 

Thank you!

 

Brian.

 

-=-=-=-=-=-=-=-=-=-=-=-=-=-

Brian Piotrowski

Specialist - I.T.

Simcoe Parts Service, Inc.

Ph: 705-435-7814 x343

Fx: 705-435-6746

bpiotrowski@xxxxxxxxxxxxxxx

-=-=-=-=-=-=-=-=-=-=-=-=-=-

 


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.