Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Load data from qvd into table

Hi there,

i want to know if its possible to load data from qvd into SQL Anywhere table.

In my script i am loading data from a qvd file to qlikview:

qvd:

LEFT JOIN (table1)

LOAD

     date,

     Reason_Code,

     amzsubcat,

     product

FROM 'C:\test\new.qvd' (qvd);

In the qlikview file i want to export data like this:

For i= 0 to NoOfRows('C:\test\Verkäufe_neu.qvd') -1

          LET V_FIELD1 = peek('amzsubcat',$(i),'C:\test\Verkäufe_neu.qvd');

           SQL INSERT INTO TABLE(fr_ratenschema_kat) VALUES('$(V_FIELD1)');

NEXT;

But this doesn't work.

Any idea how to realize it?

Thanks and regards

Sabrina

1 Solution

Accepted Solutions
Clever_Anjos
Employee
Employee

NoOfRows expects a table, not a QVD file, the rest of your code seems to be correct


You need to load it first

Temp:

LOAD * from C:\test\Verkäufe_neu.qvd(qvd)

For i= 0 to NoOfRows('Temp') -1

          LET V_FIELD1 = peek('amzsubcat',$(i),'Temp');

           SQL INSERT INTO TABLE(fr_ratenschema_kat) VALUES('$(V_FIELD1)');

NEXT;


View solution in original post

2 Replies
Clever_Anjos
Employee
Employee

NoOfRows expects a table, not a QVD file, the rest of your code seems to be correct


You need to load it first

Temp:

LOAD * from C:\test\Verkäufe_neu.qvd(qvd)

For i= 0 to NoOfRows('Temp') -1

          LET V_FIELD1 = peek('amzsubcat',$(i),'Temp');

           SQL INSERT INTO TABLE(fr_ratenschema_kat) VALUES('$(V_FIELD1)');

NEXT;


Not applicable
Author

thank you!!!!!