Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Load only if condition is met

Hi Guys,

I have a folder location where everyday a new csv-file is inserted. Now I have written an initial load into a QVD for the first month but this is not incremental. From now on I don't want to load all the files but only the files with an date modified that is equal to today, so basicly only the new and updated files.

I want to write something like:

FOR EACH File in Filelist()

IF(Condition,

Load *

From ...

Where

, Next File)

Hope you can help me out.

1 Solution

Accepted Solutions
sunny_talwar

Something like this:

FOR EACH File in Filelist()

     IF Condition then

         

          Load *

          From ...

          Where

     ELSE

         

          ...

     ENDIF;

NEXT File;

View solution in original post

1 Reply
sunny_talwar

Something like this:

FOR EACH File in Filelist()

     IF Condition then

         

          Load *

          From ...

          Where

     ELSE

         

          ...

     ENDIF;

NEXT File;