Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Variable for the path

!

For creating the Variable for the path I am getting probelm

For path \\x\y\z\ABCv2.13 04-18-2014.txt

I used Let vPath = \\x\y\z;

LOAD .....

FROM

[vPath\ABCv2.13 04-18-2014.txt]

But it is not working ...

My question is ..

1.It is server path can declare thru variable..

2.Is there any Syntax error in this...

3.For Such files the date varies 04-18-2014 by week ,and also version v2.13 changes ... can I declare them also in variable so that if it changes it picks it automatically...

!

1 Solution

Accepted Solutions
Joseph_Musekura
Support
Support

Hi,

You need to use SET instead of LET

ex: SET vPath=  \\x\y\z;

 

Then use $(vPath) in the load statement.

Thanks

View solution in original post

5 Replies
Joseph_Musekura
Support
Support

Hi,

You need to use SET instead of LET

ex: SET vPath=  \\x\y\z;

 

Then use $(vPath) in the load statement.

Thanks

swuehl
MVP
MVP

Try

FROM

[$(vPath)\ABCv2.13 04-18-2014.txt]

Joseph_Musekura
Support
Support

As advised  I tested this and it is OK

vPath= C:\Users\jmu\Desktop\pathTest;

LOAD Salesman,   Year1, Janu,   FebrMarc,   Apri

FROM   

$(vPath)\crossTable2.csv
(
txt, codepage is 1252, embedded labels, delimiter is ';', msq);

Regards,

Joseph_Musekura
Support
Support

correction on first statement ( i missed SET):

SET vPath= C:\Users\jmu\Desktop\pathTest;

Not applicable
Author

For Such paths we have files ABCv2.13 04-18-2014.txt...... the date changes 04-18-2014 by week from 04-18-2014 to 04-25-2014.(exactly seven days)

Is there any thing possible by incremental load here to change the date from one week to next week  ... Is it possible ....