Trigger a job based on more than one file.
Trigger a job based on more than one file.
Hi,
If I have, for example, 3 dataset say dataset-1, dataset-2 and dataset-3. Can a be job be triggered by the availability of all datasets?
I want to put a condition that the job should get triggered when all the three datasets are available. If only one or two datasets are available then the job should not get triggered.
If I have, for example, 3 dataset say dataset-1, dataset-2 and dataset-3. Can a be job be triggered by the availability of all datasets?
I want to put a condition that the job should get triggered when all the three datasets are available. If only one or two datasets are available then the job should not get triggered.
-
- New Member
- Posts: 8
- Joined: Tue Jun 23, 2015 4:25 pm
Re: Trigger a job based on more than one file.
Assuming you're talking about TWS, one dataset will trigger an application with one (or more) jobs in. You cannot wait until all three datasets have been closed before the application is triggered.
What you could do of course is have each of the three datasets trigger three applications that don't actually do anything, e.g.; contain a non-reporting job. Your real job could then be dependent on these three dummy jobs.
What you could do of course is have each of the three datasets trigger three applications that don't actually do anything, e.g.; contain a non-reporting job. Your real job could then be dependent on these three dummy jobs.
Re: Trigger a job based on more than one file.
Thanks for the reply Blackthorn. We have CA-7 but I think I can use the logic in that too.
But what do you mean by this sentence:
But what do you mean by this sentence:
What do you mean by "close"?You cannot wait until all three datasets have been closed before the application is triggered.
Re: Trigger a job based on more than one file.
Obviously you are not a programmer. When a program creates a dataset then it opens it, writes the data and when all data is written the dataset is closed. At that point it becomes available to other programs. Scheduling applications, however, just look to see if the dataset exists - not what state it is in.
Regards
Nic
Nic
Re: Trigger a job based on more than one file.
Thanks nicc. I did not understand it on first read but now it make sense to me. Thanks for the explanation.
Re: Trigger a job based on more than one file.
Or, if the datasets are created by jobs within the same "machine" then have your job have predecessors of the job(s) that creates the 3 datasets.
Regards
Nic
Nic
Re: Trigger a job based on more than one file.
Hello,
Isnt't it possible to create a runcycle group with two trigger runcycle for this application?
Rergards, Grauds
Isnt't it possible to create a runcycle group with two trigger runcycle for this application?
Rergards, Grauds
Re: Trigger a job based on more than one file.
..or three trigger runcycle..Gradus wrote:Hello,
Isnt't it possible to create a runcycle group with two trigger runcycle for this application?
Rergards, Grauds
Re: Trigger a job based on more than one file.
Two of them created on the same mainframe and one comes from the other team, not on the same machine. And in future all the files will come from other resources.nicc wrote:Or, if the datasets are created by jobs within the same "machine" then have your job have predecessors of the job(s) that creates the 3 datasets.
Re: Trigger a job based on more than one file.
I am not aware about "runcycle group", can you explain it?Gradus wrote:Hello,
Isnt't it possible to create a runcycle group with two trigger runcycle for this application?
Rergards, Grauds
Re: Trigger a job based on more than one file.
Refer to your scheduling group. You do not actually state which scheduling software you use so the term may vary depending on the software. However, the schedulers should be able to figure it out and they would be able to tell you what term they use.t "runcycle group", ca
Regards
Nic
Nic
- Anuj Dhawan
- Founder
- Posts: 2806
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: Trigger a job based on more than one file.
What are you trying to say?paulaugust wrote:You can trigger the database one what about another two of the database you need to wait or else program you can implement to satisfy your condition it is possible you can go with it
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Re: Trigger a job based on more than one file.
I think he just wanted to say anything, relevant or not. No database has been mentioned and, as written, the sentence is incomplete and gibberish even taking into account that English is nit the person's first language.
Regards
Nic
Nic
Re: Trigger a job based on more than one file.
Thanks all. We are using CA-7. I have put File dependency and it seems to work for me as of now.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute