View previous topic :: View next topic |
Author |
Message |
Aravind_Viswanathan Beginner
Joined: 19 Jan 2006 Posts: 3 Topics: 2
|
Posted: Thu Jan 19, 2006 4:28 am Post subject: File Triggered jobs through schedulers |
|
|
Hi,
My requirement is this-
I have a job that is file triggered. There are 21 files in total triggerring the job. Each file when input results in a new instance of the job being triggered. Is there a way i can find which one of the 21 files triggered a particular run of the job.
For eg: If FileA has triggered the job, will I be able to find out that this run of the job was triggered by FileA at run time of the JCL?
P.S: The scheduler being used is EPAS
Thanks,
Aravind |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Thu Jan 19, 2006 5:10 am Post subject: |
|
|
Aravind_Viswanathan,
Check with your schedulers they will be able to tell you which dataset trigerred the job.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Aravind_Viswanathan Beginner
Joined: 19 Jan 2006 Posts: 3 Topics: 2
|
Posted: Thu Jan 19, 2006 5:17 am Post subject: |
|
|
Hi,
I know the list of files that would trigger it. I need to know the dataset that triggered the job while executing it. I need to do some specific processing depending on the dataset that had triggered the job. |
|
Back to top |
|
 |
German Castillo Beginner

Joined: 23 Dec 2005 Posts: 83 Topics: 2 Location: Caracas, Venezuela
|
Posted: Thu Jan 19, 2006 9:47 am Post subject: |
|
|
Hello Aravin Viswanathan,
That may be unpredictable, because from the moment in which a dataset trigered your job, all the way until your program has control, another dataset may be created also. That means that you can have a huge amount of possible combinations at any given time. Unless of course that you are sure that only one dataset exist at any given time.
The best way is as kolosu posted above, check with your planifiers, but if you still want to do it yourself, run a listcat and process its output, or use you prefered language to check for the existence of a dataset. _________________ Best wishes,
German Castillo |
|
Back to top |
|
 |
|
|