Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Run a job on a date condition

Hello,
I need to run a job only when the current date is in month january.
I have seen that there is the tWaitForSQLData component but it only works on a reached nb of rows.
Could you give me some suggestions please.
Thanks
Labels (2)
7 Replies
Anonymous
Not applicable
Author

You can maybe use the trigger Runif to the tRunJob component.
Anonymous
Not applicable
Author

Hello,
Set a variable with tSetGlobalVar :
key : "the_date"
value : TalendDate.getDate("MM")
Plug a trigger "run if" from the tSetGlobalVar to your job with this condition :
("06").equals(((String)globalMap.get("The_date")))
In this example the job will run if the current date is in month june.
JC
Anonymous
Not applicable
Author

Thanks very much.
The solution of jcoutin works very good.
_AnonymousUser
Specialist III
Specialist III

Really working ..thanks
Anonymous
Not applicable
Author

0683p000009MACn.png
Happy to be helpful.
Anonymous
Not applicable
Author


@jcoutin wrote:
Hello,
Set a variable with tSetGlobalVar :
key : "the_date"
value : TalendDate.getDate("MM")
Plug a trigger "run if" from the tSetGlobalVar to your job with this condition :
("06").equals(((String)globalMap.get("The_date")))
In this example the job will run if the current date is in month june.
JC

Thanks for the solution, I also need when the month is different. Instead of month equals to June I need month different from June. Can you help me?

Anonymous
Not applicable
Author

@haralba 

 

Please add a not condition as a wrapper function.

 

Relational.NOT(true)

eg:- Relational.NOT(<your existing condtion>)

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂