Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have talend job that runs twice a day daily. It generates a new output file everyday for every run. Filename stays the same.
What I would like to do is develop a check within the job that checks for:
1. Is it Saturday
2. Is this run number 2
If both conditions are then execute another subjob that archives the file produced to a table.
I have used the IF condition before however I am not sure how to check what day it is? and how to enumerate the job run number (I am guessing I can log that prior to job run in a table and then check against that)?
thoughts?
thanks
Hi,
To identify the current day, the best component is to use a tRowgenerator. Store the data output from this component to a context variable and use it in necessary condition check like within Run If flows.
For the second query, you will log the previous run information to a table each time job is running. Then you can count the processing count easily.
Coming to the details of the tRowGenerator, please refer the screenshots below.
Hope I answered your query 🙂 Please spare a second to mark the topic as resolved.
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