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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Load Single value from Text File

Hi,

Im using a text file with a single date stamp to trigger a reload.

My text file looks like this (which has no column heading):

refresh_trigger.PNG

When I try to load the using the load wizard it generates the following code  :

Trigger:

LOAD [21/12/2016]

FROM

(txt, codepage is 1252, embedded labels, delimiter is '\t', msq);

Is there anyway to load this as a field?  I need to use the following script which loads the value as 'DWDate' :

LET vDWDate = peek('DWDate');

if vDWDate=vToday then

  Exit Do

else

DROP TABLE Trigger;

Sleep 50000;  // 10000 milliseconds = 10 seconds.

end if

Many thanks,

1 Solution

Accepted Solutions
sunny_talwar

Try this:

LOAD @1 as DWDate

FROM

(txt, codepage is 1252, no labels, delimiter is '\t', msq);

View solution in original post

2 Replies
sunny_talwar

Try this:

LOAD @1 as DWDate

FROM

(txt, codepage is 1252, no labels, delimiter is '\t', msq);

Not applicable
Author

Perfect and thanks for the quick response!