View previous topic :: View next topic
|
Author |
Message |
Raghavendra P K
New User
Joined: 24 Aug 2007 Posts: 24 Location: bangalore
|
|
|
|
HI ,
I have 2 steps in my jcl. First step should run for 7 days .after the 7th run of the first step second step should run.Is there any way to accomplish this requirement.
currently i have 2 jobs. First job runs daily to take backup of a file.
The second job runs weekly to capture weekly back of the files generated by first job.
I need to combine both the jcls into a single jcl where first step runs daily and second step should run at weekend.
Thanks,
Raghav |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
why not use a scheduling package ?? |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi !
What's the reason for only one Job? Two different Jobs, scheduled by a Scheduling-System like OPC ore whatever is just fine !!!
Regards, UmeySan |
|
Back to top |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
Hi,
Quote: |
I need to combine both the jcls into a single jcl where first step runs daily and second step should run at weekend.
|
Why do you want to combine the both JCL's ... Just put the first step in a separate JCL and raise up in CA-7 or other .. Again put the second step in a separate JCL and raise up in CA-7 or other ... this is cool .. I dont know why you are confusing ... Is there any serious requirement for doing this???
Quote: |
currently i have 2 jobs. First job runs daily to take backup of a file.
The second job runs weekly to capture weekly back of the files generated by first job. |
I guess you are in right way .. Please explain why you want to change the same ... |
|
Back to top |
|
|
Raghavendra P K
New User
Joined: 24 Aug 2007 Posts: 24 Location: bangalore
|
|
|
|
Hi,
even i dont want to use single JCL to accomplish this,but i have been asked to change that into single JCL. Is there any way that i can pull the day of the week and compare this in an IF condition to excecute the second step.
Please advise me . |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
You did not reply to the question asking about a scheduling product !
The only way to do it is to write a program which will exit
with a return code corresponding to the day of the week
( for example 1...7 for mon...sun )
and run the subsequent step only if the day of week matches..
these are usually utility programs that most operations support groups have,
or inherited before having available a scheduling package |
|
Back to top |
|
|
Raghavendra P K
New User
Joined: 24 Aug 2007 Posts: 24 Location: bangalore
|
|
|
|
Hi enrico,
i didn't have much knowledge about scheduling package.Could yoou please tell me ,what is scheduling package, and how to use it.
do yoou mean to say i have to write a program to generate the return codes. Please could you elobarate the procedure that i need to follow.
In My Jcl's i am not using any program. I am using Sort utility. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
The objective of these forum is not only to give answers to the posters,
but also to teach them how to use the resources of their organization
Do You have an operation support team, speak with them
they should know - I hope - about your environment and be
able to describe the tools available at Your installation
At a first glance I would say that sort is not the best tool to be used for backups,
why not speak with the storage support group..
/smiley on
unless there is just one person wearing different jackets at different
times of the day
/smiley off |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
enrico-sorichetti wrote: |
The objective of these forum is not only to give answers to the posters,
but also to teach them how to use the resources of their organization |
That's not true. The majority of posters on this site are contractors and do not have or are denied access to their client site's support teams. Obvously, if more posters had better access to those teams, there would be substantially fewer posts of this nature. |
|
Back to top |
|
|
Raghavendra P K
New User
Joined: 24 Aug 2007 Posts: 24 Location: bangalore
|
|
|
|
Hi Enrico ,
Definitely will speak to ops people. thanks. |
|
Back to top |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
Raghav,
There should be a team for Schedulers i guess ... Plz send out the mail to them to add the jobs in the scheduler!!! Since it's a weekly execution just we can execute easily with the help of schedulers ... Can you plz say me are you submitting the job ie., everyday job in manual basis?? |
|
Back to top |
|
|
Raghavendra P K
New User
Joined: 24 Aug 2007 Posts: 24 Location: bangalore
|
|
|
|
HI khamarutheen,
at present i am excecuting the job manually.I have to schedule the job from next week. I have planned to schedule both the jobs,but my onshore counterpart has asked me to merge both the jcls into single jcl. |
|
Back to top |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
Raghav,
My sugg is ... You can ask the scheduling team to schedule two diff jobs in the scheduler and close your case ... You can give the better sugg to the onshore team what you call it as ... Hope if you come up with the good solution they will accept it ... Do you have any reason why they are asking to merge two jobs ??? |
|
Back to top |
|
|
Raghavendra P K
New User
Joined: 24 Aug 2007 Posts: 24 Location: bangalore
|
|
|
|
Hi Khamarutheen,
there is no specific reason to do this. They are telling instead of usign two jobs can we use one job to accomplish the requirement.I will speak to them tomorrow. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Easy - Ask THEM to supply the JCL that will accomplish this. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi Raghav,
you say that you currently have 2 jobs.
1 runs daily and the other runs at the weekend.
What method are you using to achieve this?
Is it a manual or automatic process ?
Cheers
Gerry |
|
Back to top |
|
|
|