MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Query regarding CA7 Scheduler

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
mayuri
Beginner


Joined: 26 Aug 2006
Posts: 17
Topics: 4

PostPosted: Fri Dec 01, 2006 8:12 am    Post subject: Query regarding CA7 Scheduler Reply with quote

hi all,

i have two jobs. JOBA will extract data from DB2 and puts them into sequential files. JOBB will FTP these files to windows environment.
JOBB has to run immediately after JOBA completes. and this sequence has to be done atleast 8 times a day.

say we have to get some 10 lakhs rows from DB. JOBA will get 1000 each time it executes. so as soon as these 1000 files are extracted the JOBB will FTP them. then JOBA will again have to run to get next 1000 and so on.

how will i have to Schedule such kind of jobs.
JOBA cannot start before JOBB FTP's previous files; as the output files used by JOBA for every run will be same. so if JOBA runs for the second time without JOBB FTP'ing the data will be lost.


kindly help..

Thanks in advance

Regards
Mayuri
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Fri Dec 01, 2006 8:47 am    Post subject: Reply with quote

Mayuri,

Just trigger JOB-B from Job-A. In Job-B put the disp of the ftp file as OLD so as soon JOB-A completes and triggers JOB-B, it will have an exclusive hold on the output files. So your next job-A will be sitting in the queue as long as JOB-B is execueting. If you don't like DISP option then put the OUTPUT file as VIRTUAL RESOURCE CONNECTIONS. By doing so , jobs will have an exclusive lock over the dataset.

Hope this helps..

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mayuri
Beginner


Joined: 26 Aug 2006
Posts: 17
Topics: 4

PostPosted: Fri Dec 01, 2006 12:35 pm    Post subject: Reply with quote

hi Kolusu,
thanks for your quick reply.

i want to tell you few more things

JOBA will dynamically open(using PUTENV) the sequential files which were pre- allocated. so say 4 sequential files were needed in run1 of JOBA;database records are extracted and put into these 4 files; also a value of 4 is written into another output file. (the calculation of files required(4 in this case) is done in code)

now in JOBB: Step 1 executes a cobol program which takes this value of 4 as input and builds the strings like
PUT 'input file name' 'output file name'
and writes them into a file called FTPPUT.COMMANDS . the strings that will be created will be equal to the no. of files that were used by JOBA (i.e..,4 in this case)
the FTP connection commands are there in a file called FTPCON.COMMANDS
Step2 of JOBB will take FTPCON.COMMANDS and FTPPUT.COMMANDS and do the FTP work..

so i donot have the possiblity of making the DISP parameter as OLD.
kindly help..

Regards
Mayuri
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Fri Dec 01, 2006 1:50 pm    Post subject: Reply with quote

mayuri,

Why can't you combine Job-A and Job-B as a single job?

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mayuri
Beginner


Joined: 26 Aug 2006
Posts: 17
Topics: 4

PostPosted: Fri Dec 01, 2006 11:40 pm    Post subject: Reply with quote

Kolusu

yaa i can do that. but please tell me the advantages and disadvantages of combining two jobs for my case in particular and also in general..

Thanks in advance

Regards
Mayuri
Back to top
View user's profile Send private message
mayuri
Beginner


Joined: 26 Aug 2006
Posts: 17
Topics: 4

PostPosted: Sat Dec 02, 2006 1:10 am    Post subject: Reply with quote

hi kolusu,

i have one more doubt also. if i combine JOBA and JOBB as follows
FINALJOB
STEP1:does JOBA
STEP2:does JOBB

if STEP1 fails then FINALJOB will completely fail.. right? i donot have a problem here..but
if STEP2 fails then how can i execute the STEP2 alone.. ? does CA-7 allow this..?
because in such case if again FINALJOB is made to Crying or Very sad run and STEP1 is executed the previous data is overwritten and is loast for ever..
Crying or Very sad
Thanks in advance

Regards
Mayuri
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Sat Dec 02, 2006 9:34 am    Post subject: Reply with quote

Mayuri,

Ca-7 lets you restart the failed step.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mayuri
Beginner


Joined: 26 Aug 2006
Posts: 17
Topics: 4

PostPosted: Tue Dec 05, 2006 7:30 am    Post subject: Reply with quote

hi Kolusu

Thanks a lot for the information
i have implemented in the same way..(combining the two jobs)

Regards
Mayuri
Back to top
View user's profile Send private message
ukumar2006
Beginner


Joined: 05 Apr 2007
Posts: 1
Topics: 0
Location: Phoenix

PostPosted: Thu Apr 05, 2007 5:04 pm    Post subject: Reply with quote

Hi all,

Could anybody explain me the process of removing the production job from Jobtrac permanently??
This is not just decommissioning the existing job but we need to remove the entry from the jcl library.

Many thanks in advance,
Uttam.
Back to top
View user's profile Send private message Yahoo Messenger
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Fri Apr 06, 2007 12:35 am    Post subject: Reply with quote

ukumar2006 wrote:
Hi all,

Could anybody explain me the process of removing the production job from Jobtrac permanently??
This is not just decommissioning the existing job but we need to remove the entry from the jcl library.

Many thanks in advance,
Uttam.


Uttam,

If you wanna delete job from production library, then you have to create a delete changeman package and deploying that package will delete from prod library. I am not sure how to do it with Endevor.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group