Focal Point
Load multidimensional CSV File

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6727025416

December 19, 2011, 07:26 AM
ChristianP
Load multidimensional CSV File
Hello,

i have to load a csv file from SAP (tab seperated) into WebFOCUS. The problem is that the structure is not a typical flat file structure. (Content by Columns)
I will get the data in rows. In the first row are header informations, like user_id, e_mail, company, date, in the sond row are deaper informations on the contracts belonging to the company like order or contracts, currencies, materials.
In the third to n rows are the actual orders with amounts, companys, savings. Each row has the contract_id as key field to connect the rows.
I also know in which table (SQL-Server) i have to write the specific values. Has anybody an idea how such a load process shoud work??

Regards

Christian


WF Production Version: 7.7.02M
WF Test Version: 7.7.02M
Developer Studio: 7.7.02
HTML, EXL2K, FLEX, PDF,PPT
December 19, 2011, 10:26 AM
dhagen
WF is very good at working with multi-record sequential files. Unfortunately, this does not apply to CSV format.

What a work mate of mine did very recently was create a master with one field that was as long as the longest potential record and treated the CSV as a true flat file. He then ran one query for each record type and saved the output in their own tables (using a series of where statements to identify the different record types). He then created one master for each record type to read only those records as CSVs.

This will only work if there is something in each record that can point to the parent record.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
December 20, 2011, 09:13 AM
Danny-SRL
Could you post an example of the file contents?


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

December 21, 2011, 05:54 AM
ChristianP
Hi Danny,

do you mean the description of the CSV File, or a real example of the content of the CSV File??
Thanks a lot

Christian


WF Production Version: 7.7.02M
WF Test Version: 7.7.02M
Developer Studio: 7.7.02
HTML, EXL2K, FLEX, PDF,PPT
December 21, 2011, 05:58 AM
ChristianP
Hi dhagen,
thanks a lot for your help. Can you give me an example. I think this is more than beginner stuff!!!!

Regards

Christian


WF Production Version: 7.7.02M
WF Test Version: 7.7.02M
Developer Studio: 7.7.02
HTML, EXL2K, FLEX, PDF,PPT