Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
bhupesh_gupta
Creator
Creator

Run a qvw on the 5th working day of the Month??

Hi All

I want to run a qvw file on the 5th working day of the month.

How can i achive this functionality.

Regards

Bhupesh

4 Replies
datanibbler
Champion
Champion

Hi Bhupesh,

just insert a condition like

>>> IF(day(date_field) <> 5, 'EXIT SCRIPT') <<<

=> Not sure this will work, haven't tried it yet, but the day() fct will return the day_of_the_month assuming you have a master_calendar with a date_field.

HTH

Best regards,

DataNibbler

Not applicable

hi

maybe this image can help u

in qlikview management console i think you can achieve what you want

1.JPG.jpg

bhupesh_gupta
Creator
Creator
Author

Hi Behnaz

What you have suggested will run the script on the 5th day of month while what I need is 5th working day.

Regards

Bhupesh

bhupesh_gupta
Creator
Creator
Author

Hi Friedrich

Thanks for reply ....

I found the solution which is like this

I have created a qvw with the below mentioned code and schdule it from qmc .

 

Let varSystemAvailabl = NetworkDays( MonthStart (Today()), Today() );

if varSystemAvailable <> 5 then //5 as we need to run it on 5th working day
exit script;

ELSEIF

/// For Failure

Qlikview ; ///written to produce error

ENDIF;

And then we created the trigger on the failure of this task to run our desired application

Regards

Bhupesh