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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
talendstar
Creator
Creator

Check day and run number

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

Labels (3)
1 Reply
Anonymous
Not applicable

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.

 

0683p000009M6py.png

 

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.

0683p000009M6q8.png

0683p000009M6gO.png

 

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