View previous topic :: View next topic
|
Author |
Message |
MainB
New User
Joined: 03 Nov 2005 Posts: 17
|
|
|
|
I have a requirement where I have to FTP a file from mainfram to midrange after a job completes on mainframe.
This JOB is a production job and runs under CA7. It creates a file which I need to FTP. I want to automate my FTP such that it happens after successful completion of this job.
Ideally if the job which creates my file can also create a control file with a date and time I can compare it with the control file I had last week and everytime I see changes I can FTP the main file.
But this job is owned by another group and they will not change. So, I wanted to find a way where I can know for sure that the job has completed successfully and I can now pick the file. I thought about doing a file compare from what I had last week to this week - but that will be time consuming because the files are not very small. Plus - I have to do this for many more files/jobs.
Any help will really be a help. |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Can't you get the FTP job triggerred by the main job after the successfull completion.
Regards,
Priyesh. |
|
Back to top |
|
|
MainB
New User
Joined: 03 Nov 2005 Posts: 17
|
|
|
|
Wish it was that simple. This other job is owned by another grpoup and runs under production CA7. We do not want any changes to the production setup. Instead we want to create our own process which is NON PRODUCTION and runs immediately after the production job is successfully complete. |
|
Back to top |
|
|
Kevin
Active User
Joined: 25 Aug 2005 Posts: 234
|
|
|
|
I can't think of anything without knowing what suite(s) of products you may have available that could potentially deal with this:
- Netview?
- An automated operator console?
- CONNECT:Direct (NDM)?
Can you create a started task (STC) that would always be active and that would occasionally "wake up" and check for the presence of the appropriate dataset and/or the status of the job? |
|
Back to top |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 420 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
why not just create your FTP job and make in dependent upon successful completion (RC=0) of the job that creates the file you nwant to FTP (other groups job)?
Dave |
|
Back to top |
|
|
MainB
New User
Joined: 03 Nov 2005 Posts: 17
|
|
|
|
This is what I need to do - but where and how do I specify that my job is dependent on successful completion of the other job? Mine is going to be non production notpart of any scheduler - How will it know that other one is complete? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
If your FTP job is not part of a schedule, I'm curious as to how it will get loaded. Will you just be manually submitting the job and then having it wait until the other application job completes? If not, what will load it out to the Internal Reader for execution? |
|
Back to top |
|
|
MainB
New User
Joined: 03 Nov 2005 Posts: 17
|
|
|
|
OK - I must have made that clear. This is how my setup will be. On our mainframe we have a non production CA.... shows up like this
5 CACTION Primary Options Menu for Change Action
Under this we can schedule our own jobs - but these do not relate to the production jobs - which are schduled and monitored by production controller.
I plan to put a simple JCL that SOMEHOW looks for completion of the prodn job and creates a sort of control file. My FTP job will be running as a windows command file on a mid range looking for this control file - when found it will start the FTP for the main file.
I have not used 5 CACTION very extensivley - it may have some way to communicate with production CA7!!!
Thanks |
|
Back to top |
|
|
|