MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

File Triggered jobs through schedulers

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics
View previous topic :: View next topic  
Author Message
Aravind_Viswanathan
Beginner


Joined: 19 Jan 2006
Posts: 3
Topics: 2

PostPosted: Thu Jan 19, 2006 4:28 am    Post subject: File Triggered jobs through schedulers Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Jan 19, 2006 5:10 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Aravind_Viswanathan
Beginner


Joined: 19 Jan 2006
Posts: 3
Topics: 2

PostPosted: Thu Jan 19, 2006 5:17 am    Post subject: Reply with quote

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
View user's profile Send private message
German Castillo
Beginner


Joined: 23 Dec 2005
Posts: 83
Topics: 2
Location: Caracas, Venezuela

PostPosted: Thu Jan 19, 2006 9:47 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group