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.
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.
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?
Joined: 26 Apr 2004 Posts: 4648 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?
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!!!