Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to trap JCL completion

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: How to trap JCL completion
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: 1452
Location: Chicago, IL

PostPosted: Thu Nov 03, 2005 1:50 pm    Post subject: Re: How to trap JCL completion
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    Post subject:
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    Post subject: Re: How to trap JCL completion
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: 241
Location: Cincinnati OH USA

PostPosted: Fri Nov 04, 2005 4:24 am    Post subject:
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    Post subject:
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

Moderator Team Head


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

PostPosted: Fri Nov 04, 2005 7:12 am    Post subject: Re: How to trap JCL completion
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts creating a report for a job after com... Benita Mohandass JCL & VSAM 11 Wed Jul 17, 2013 12:54 pm
No new posts USER COMPLETION CODE=3572 narasimha.g IMS DB/DC 3 Tue Aug 30, 2011 4:52 pm
No new posts Got System Completion Code=0C1 Akatsukami ABENDS & Debugging 14 Fri Jul 29, 2011 6:41 pm
No new posts Have to predict the completion of dow... expat All Other Mainframe Topics 10 Wed Jun 29, 2011 1:26 pm
No new posts IBM Debug Tool - trap an online program dbzTHEdinosauer IBM Tools 6 Wed Jun 01, 2011 10:55 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us