Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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

Labels (1)
1 Solution

Accepted Solutions
Clever_Anjos
Support
Support

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
Support
Support

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!!!!!