View previous topic :: View next topic
|
Author |
Message |
karisurya
New User
Joined: 02 Aug 2007 Posts: 64 Location: Bangalore
|
|
|
|
I have a requirement where the job should continuously run until the latest generation is XCOM from other mainframe server. In order to check for latest generation i can check either creation date of the generation or the file it self contains header records with creation date. By checking any of the above i can find latest generation.
If any one worked on similar issue or have a good approach to solve the problem, please let me know.
Thanks,
Surya |
|
Back to top |
|
|
arvind.m
Active User
Joined: 28 Aug 2008 Posts: 205 Location: Hyderabad
|
|
|
|
To check the creation date of a GDG files use LISTCAT
Code: |
LISTC ENT('GDG base ') ALL
|
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
I have a requirement where the job should continuously run until the latest generation is XCOM from other mainframe server |
How does a job "run continuously" using a qsam file as input?
I suspect/assume the the file that arrives via XCOM is qsam?
If you describe what you want to do in more detail, someone may have a suggestion. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
How does a job "run continuously" using a qsam file as input? |
Infinite loop? |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
Robert Sample wrote: |
Quote: |
How does a job "run continuously" using a qsam file as input? |
Infinite loop? |
Ahh yes -- my kind of job. A CPU eater upper. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
If only I worked for a hardware vendor ... sigh. |
|
Back to top |
|
|
karisurya
New User
Joined: 02 Aug 2007 Posts: 64 Location: Bangalore
|
|
|
|
Thank you all for the response any way i dropped the plan of making job wait till the file received from other server . I understand its a very bad approach.
I modified the way jobs are going to be executed which will ensure the latest file is already in place prior to the job run.
Thanks,
Surya |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
Thanks for sharing your solution. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
i dropped the plan of making job wait till the file received from other server |
Something you might consider is having the job defined to the schedule to be triggered when the file is received.
Your scheduling people will be able to help with the schedule setup. |
|
Back to top |
|
|
|