0 Replies Latest reply: Dec 18, 2014 9:28 AM by Göran Hofstedt RSS

    Need help to control reloading from a Batch

    Göran Hofstedt


      I use a batchfile to reload my qvw ETL-flow but my problem is how to stop and exit the batch if the string vUpdate is set to 0 in the extract log file. Or maybe easier (?) let the batch proceed if the vUpdate is set to 1. I can find the string in the batch from the cmd by findstr /c:"vUpdate = 1" Extract.log

      But I don´t get the rest to work. If it´s found I would like the batch to proceed to reload my transform qvw and then the load qvw.


      This is how I run the etl flow


      Rem Reload the ETL Qlikview

      "C:\program Files\QlikView\QV.exe" /r /NoSecurity "D:\QlikView server filer\Extract.qvw"

      I want the check have to be between this two lines
      "C:\program Files\QlikView\QV.exe" /r /NoSecurity "D:\QlikView server filer\Transform.qvw"
      "C:\program Files\QlikView\QV.exe" /r /NoSecurity "D:\QlikView server filer\Load.qvw"


      For that I have tried to follow this post on how to use the log file as a if-statment in a batch but can´t get it to work


      Any suggestions?