IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to trap JCL completion


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
MainB

New User


Joined: 03 Nov 2005
Posts: 17

PostPosted: Thu Nov 03, 2005 1:01 am
Reply with quote

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
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Thu Nov 03, 2005 1:50 pm
Reply with quote

Can't you get the FTP job triggerred by the main job after the successfull completion.

Regards,

Priyesh.
Back to top
View user's profile Send private message
MainB

New User


Joined: 03 Nov 2005
Posts: 17

PostPosted: Thu Nov 03, 2005 9:30 pm
Reply with quote

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

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Fri Nov 04, 2005 12:08 am
Reply with quote

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

Active User


Joined: 27 Apr 2005
Posts: 419
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Fri Nov 04, 2005 4:24 am
Reply with quote

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

New User


Joined: 03 Nov 2005
Posts: 17

PostPosted: Fri Nov 04, 2005 4:59 am
Reply with quote

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

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Nov 04, 2005 7:12 am
Reply with quote

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

New User


Joined: 03 Nov 2005
Posts: 17

PostPosted: Fri Nov 04, 2005 8:56 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts CSQBGET - Call giving completion code... COBOL Programming 3
No new posts CP3KEXTR Setup- SYSTEM COMPLETION COD... ABENDS & Debugging 7
No new posts Trap a CP command message in Rexx zVM CLIST & REXX 1
No new posts Trap the jcl error message or maxcc i... CLIST & REXX 5
No new posts DSNACCOX (can it be run on 1 db/ts, t... DB2 5
Search our Forums:

Back to Top