Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi all,
Could you suggest here
step 1
Once the report reloads everyday with new data for ex: from folder 2015.csv>>aug.csv file
Load the data into qvd.
For ex
Customers:
Load * fromm..csv
Products
Load * from ...csv
Store Customers into Customers '$(timestamp).qvd (qvd);
Store Products into Products '$(timestamp).qvd(qvd);
step 2
Check in the specific folder whether the QVD is created and filesize >0
if file size > 0 then
step 3
Delete or move from the folder to ....some drive
step 3.
Delete the folder 2015.csv or move or archive..
Hi Benny,
I not understanding what exactly u want. can u explain it more ?
if you want to delete, move, copy, in short execute dos commands from QlikView
Q-Tip #7 – Execute a Command Using EXECUTE | Natural Synergies
hi nagarjuna,
I would like to check whether the qvd is created 2. whether the qvd file size >0 .if yes --> delete the main folder
let vQVDExists = if(len(FileSize('yourqvdfile.qvd')) > 0, -1, 0);
trace $(vQVDExists);
hi maxgro,
when iam trying to execute the command statement. it is in default going to the folder where the qvw is stored and does not consider the execute command
for ex ..I was testing the below
EXECUTE cmd.exe /C del "C:\Files\*.csv";
when I run the report ..the command prompt opens and it shows the path where the qvw is their as below
C:\Report\QVWs - here is where my qvw is stored. it does not identify the execute path
I tried this, .qvw is in a different folder
EXECUTE cmd.exe /C del "C:\temp\test*.log";
and it works without any prompt when I reload
hi maxgro.
it is executing the command ..but it is not executing in the path I mentioned in the script..
it opens the cmd.exe and blinks
C:
can u share the qvw u tested