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

Using While or For Each in Load statement Tables

I have 360 tables in SQL and i need 250, how i can extract this tables using something like Do while, for each..
example

Load *;
C1,
C2,
C3...

from $t1 ;
...to $t250

thanks in advance

1 Reply
swuehl
MVP
MVP

You may want to have a look at FOR...NEXT in the manual, probably something like following might work:

for counter=1 to 250 step 1

let tablename = '$t$(counter)';

load a,b from $(tablename);

next

Hope this helps,

Stefan