I've succeed to load data from multiple files using this script:
SET ThousandSep=' ';
SET DecimalSep=',';
SET MoneyThousandSep=' ';
SET MoneyDecimalSep=',';
SET MoneyFormat='# ##0,00 €;-# ##0,00 €';
SET TimeFormat='hh:mm:ss';
SET DateFormat='DD/MM/YYYY';
SET TimestampFormat='DD/MM/YYYY hh:mm:ss[.fff]';
SET MonthNames='janv.;févr.;mars;avr.;mai;juin;juil.;août;sept.;oct.;nov.;déc.';
SET DayNames='lun.;mar.;mer.;jeu.;ven.;sam.;dim.';
Data:
LOAD *, SubField(FileName(), '-', 1) as Regul, FileName() as fileName FROM
[P:\Some\Path\*.csv]
(txt, codepage is 1252, embedded labels, delimiter is '|', msq);
It works pretty well.
Now I'd like to load file that have different header names, let's say that file A
got the following:
HeadA | HeadB | HeadD
0 | 33 | 72
And File B
:
HeadB | HeadC | HeadD
60 | 40 | 30
And I'd love QlikView
to interpret it as:
Headers: HeadA | HeadB | HeadC | HeadD
FileA: 0 | 33 | null | 72
FileB: null | 60 | 40 | 30
Is there a way to do so (The current script hanged for 12h with just 60ko of data...)? Or do I have to manually merge my headers?