View previous topic :: View next topic
|
Author |
Message |
samuel_Inba
New User
Joined: 03 Jan 2008 Posts: 53 Location: Chennai
|
|
|
|
Hi,
1) I have a Job which is scheduled to run every day.I have a sort step in which i have used the include condn with a hard coded value.Now i want this hard coded value to get incremented everytime the Job runs.
say like: include condn=(1,2,ch,'65')
now i want this 65 to change to 66 when it runs the next time.
2) I have another step in which I need to get the current month and need to supply values accordingly,
say if the current month is April, if Apr then I need to pass values value1 and value2 to the include condn like,
include condn=(1,2,ch,value1),or,
(1,2,ch,value2).
IS this possible to do it thru JCL or I shud go for a program...
Pls suggest.
Thanks. |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Samuel,
1) What will happen once your incremented value reaches 99?
2) What is your condition check, for every month, are you passing a different value??
Thanks,
Arun |
|
Back to top |
|
|
samuel_Inba
New User
Joined: 03 Jan 2008 Posts: 53 Location: Chennai
|
|
|
|
Thanks for your quick response.
1) I shud be handling that too...actually speaking the number should start from 1 to 52 ( which is nthng but the fiscal weeks)
2) this is my condition:
for every month starting from
Jan - 01 and 05 (- 5 wks)
Feb - 06 and 19 (- 4 wks)
Mar - 10 and 13 (- 4 wks).
....
Dec - 49 and 52 |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
I believe you will be ahead to incorporate this requirement into a program that will be able to handle multiple sets of logic and create the control statements as needed for each run.
If your organization uses (or someday implements) some type of calendar, it should be straight forward to use the calendar in your code. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
most scheduling tools have JCL and AutoEdit facilities which would satisfy this type of request.
I have used this with Control-M.
Gerry |
|
Back to top |
|
|
samuel_Inba
New User
Joined: 03 Jan 2008 Posts: 53 Location: Chennai
|
|
|
|
Hi gcicchet,
Do you have any such sample JCL which does the required action ?
Thanks. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi Samuel,
do you have Control-M ?
Gerry |
|
Back to top |
|
|
samuel_Inba
New User
Joined: 03 Jan 2008 Posts: 53 Location: Chennai
|
|
|
|
Could you tell me a little bit more about Control - M..I use CA-7 as the scheduler and Control-D for vewing our jobs spool area.
Thanks. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
Control-M is a BMC software scheduling tool much like CA7 in its functionalities.
Just google for Control-M scheduling.
Unfortunately the AutoEdit facilities used in Control-M are not the same as CA7.
I'm sure CA7 has similar functions to fulfil your requirement.
Gerry |
|
Back to top |
|
|
samuel_Inba
New User
Joined: 03 Jan 2008 Posts: 53 Location: Chennai
|
|
|
|
Thank you. |
|
Back to top |
|
|
|