View previous topic :: View next topic |
Author |
Message |
Rajkannan Beginner
Joined: 02 Jun 2004 Posts: 64 Topics: 31
|
Posted: Thu Apr 21, 2005 12:14 pm Post subject: Automate Job |
|
|
Hi Everyone,
Currently I have a file coming from a different vendor to my system
at a predefined time , for this current process incase if file didnot make
it on time , I need to hold the job . I am trying to automate this process,
Could you please let me know if the following approach works.
I would write a rexx which inturn would check if the file has come on time
if so the job would run, in case the file didnot make it , I would build the
same job which checks for the file and write to INTRDR , and would want
this job to run every half hour to check the same file.
Please let me know if this works
Thanks
Raj Kannan |
|
Back to top |
|
|
gharisankar Beginner
Joined: 10 Jul 2004 Posts: 19 Topics: 3 Location: C/O Platform - Mainframe
|
Posted: Thu Apr 21, 2005 1:04 pm Post subject: |
|
|
Hi Rajkannan,
How you are getting the file from vendor ? If you are getting from NDM, you can define a DUMMY job and that job should be triggered by your Vendor job.
You can change your NDM parm as well.
It means, If the transmission is successful, the JOB will be triggered in your machine.
You can use this DUMMY job to trigger your actual job.
plz let me know if you have any questions _________________ Regards
Hari |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Thu Apr 21, 2005 1:17 pm Post subject: |
|
|
Rajkannan,
What kind of scheduling package does your shop have? CA-7 lets you schedule a job upon creation of a dataset. So whenever the vendor sends in a file, the JOB on your system is kicked off automatically.
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
NutCracker Beginner
Joined: 13 Dec 2002 Posts: 45 Topics: 3 Location: 3rd Block from the SUN
|
Posted: Thu Apr 21, 2005 1:34 pm Post subject: |
|
|
On behalf of RajKannan.
Hari
Quote: |
How you are getting the file from vendor
|
The Vendor system XMITs the file on to host.
Kolusu, the file in question is a current version of a GDG. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Thu Apr 21, 2005 1:40 pm Post subject: |
|
|
Quote: |
Kolusu, the file in question is a current version of a GDG.
|
Nutcracker,
Process the the current version in your host job and after processing delete the Generation. If you want to keep a back up add a step at the end of host job to copy the current version into back gdg.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
NutCracker Beginner
Joined: 13 Dec 2002 Posts: 45 Topics: 3 Location: 3rd Block from the SUN
|
Posted: Thu Apr 21, 2005 2:04 pm Post subject: |
|
|
Hi Kolusu,
This is Rajkannan Again....
the file/GDG cannot be checked for the current gen, because we would never know the time of creation. (The current gen could be from Yesterday)
For this reason, I thought of having a Rexx which would read the creation date, and programmitcally controll in a such way it would always pick the correct gen of that file which is intented to be used in the flow no matter how much delayed the file comes (worst case, say 5 days).....
Submit the same job again and again in a interval of some time through
INTDR, until you get the file....... |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Thu Apr 21, 2005 2:12 pm Post subject: |
|
|
Rajkannan,
*sigh* Do you have a schedueling package? As I mentioned earlier you don't have to check the creation date. Ca-7 lets you trigger a Job upon creation of the Dataset.
Our shop uses CA-7 and the process goes this.
A gdg base already exists for NDM file.
Code: |
1.Vendor NDM's the File to the host, Creates a new Gen
2.Host Job is triggered by newgen creation which process the newgen.
3.back up the new gen
4.Delete the new gen
|
At any point of time you will only have 1 generation.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
|
|