Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I want to know how to schedule a task in the QCM so i can transfer the logfile resulted after the daily reload of an application from the application folder to another folder.
Cheers
Hi Riad,
So the script log file name contains the application id, with this id you can specify, to which application belongs it.
It contains a timestamp as well, so you can specify which one is the newest.
If I were you, I'll follow these steps:
G.
Hi Riad,
Open QMC and select tasks. Click on the new task button at the bottom of screen.
The log files are in c:\ProgramData\Qlik\Log directory, every task create a script log, which is closely the same as you can see during a reload in Data Load Editor.
G.
Thanks for your answer
I can see the script you're talking about. My purpose is to create a file that contains this script every time a reload is done (a certain task is finished). and second step is to transfer this file from the folder whre it is created to another one that i will choose after
Do you have any clue ?
Hi Riad,
So the script log file name contains the application id, with this id you can specify, to which application belongs it.
It contains a timestamp as well, so you can specify which one is the newest.
If I were you, I'll follow these steps:
G.
Thanks for your help. I agree with your method but i don't know hot to do the three steps you mentionned before. How can i know if the standard mod has already been disabled or not ? How can i create such an application, is it a qlikview application ?
I'm a little lost here..
Hi Riad,
It would be a QlikSense application (we are talking about QlikSense right?)
sub FileList (Root)
for each File in filelist (Root&'\*.*')
LOAD
'$(File)' as Name,
autogenerate 1;
next File
end sub
call FileList ('lib://MyData')
After you selected the newest log in script you can concatenate a command and execute:
Execute 'Copy (or xcopy, robocopy) ' & '$(Log file full path)' 'c:\Destination'
G.
This was just a pseudo code, but I hope it can be help.
Do not forget the semicolon ;
Execute 'Copy (or xcopy, robocopy) ' & '$(Log file full path)' 'c:\Destination' ;
Thanks for the details In fact it's a qlikview application, are the steps mentionned in your messages working for qlikview ?
Hi Riad,
I am not experienced in QlikView, but I know there is Execute command as well,
maybe some steps will change due to QlikView.
G.
1. Trigger on end of reload in self-application, that run macro:
Sub RunCMDComand
CMDCommand = ActiveDocument.Variables("RunCMD").GetContent.String
set objShell = CreateObject("WScript.Shell")
objShell.run CMDCommand,0,true
end sub
2. Make variable RunCMD like this:
='CMD /C MOVE ' & SubField(DocumentPath(), '.', 1) & '*.log ' & Replace(DocumentPath(), DocumentName(), 'Log')
3. Be alerted that you MUST CREATE FOLDER "Log" in the folder that .QVW is in.
Macro would run after App is reloaded in full-client app either by server.
Cheers and fo to HELL with batch files.