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: 
mohamed_ahid
Partner - Specialist
Partner - Specialist

load over loop concatenating

HI all ,

i'm trying to load a several qvd file and for every one generate a qvd with distinct value .

here bellow my script

FOR Each Temp_File  in Filelist ('D:\Users\u142329\Desktop\test\PRLVMT_RUN_*.qvd')

   temp:

  LOAD Distinct

  EndToEndId,

  Numero_Facture,

  PMT_REQ_SENT_COUNTER,

  FileName() as FileName

  From

  $(Temp_File)(qvd);

  LET FileName = PEEK('Filename');

   STORE temp into D:\Users\u142329\Desktop\test_mahid\$(FileName).qvd (qvd);

   drop table temp;

NEXT

The script generate one qvd and with no name .

any suggestion please .

Thx

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

LET FileName = PEEK('Filename');

Qlikview is case sensitive and that means FileName is not the same as Filename. Try

  LET FileName = PEEK('FileName');


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

LET FileName = PEEK('Filename');

Qlikview is case sensitive and that means FileName is not the same as Filename. Try

  LET FileName = PEEK('FileName');


talk is cheap, supply exceeds demand
mohamed_ahid
Partner - Specialist
Partner - Specialist
Author

LOL!

Thx