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

Bypassing second step till 7 runs of first step


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Raghavendra P K

New User


Joined: 24 Aug 2007
Posts: 24
Location: bangalore

PostPosted: Tue Oct 23, 2007 3:16 pm
Reply with quote

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Oct 23, 2007 3:30 pm
Reply with quote

why not use a scheduling package ??
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Tue Oct 23, 2007 3:57 pm
Reply with quote

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

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Tue Oct 23, 2007 4:13 pm
Reply with quote

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

New User


Joined: 24 Aug 2007
Posts: 24
Location: bangalore

PostPosted: Tue Oct 23, 2007 4:21 pm
Reply with quote

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Oct 23, 2007 4:44 pm
Reply with quote

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

New User


Joined: 24 Aug 2007
Posts: 24
Location: bangalore

PostPosted: Tue Oct 23, 2007 5:38 pm
Reply with quote

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Oct 23, 2007 5:44 pm
Reply with quote

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

Global Moderator


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

PostPosted: Tue Oct 23, 2007 6:00 pm
Reply with quote

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

New User


Joined: 24 Aug 2007
Posts: 24
Location: bangalore

PostPosted: Tue Oct 23, 2007 6:01 pm
Reply with quote

Hi Enrico ,

Definitely will speak to ops people. thanks.
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Tue Oct 23, 2007 7:08 pm
Reply with quote

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

New User


Joined: 24 Aug 2007
Posts: 24
Location: bangalore

PostPosted: Tue Oct 23, 2007 7:59 pm
Reply with quote

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

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Tue Oct 23, 2007 8:10 pm
Reply with quote

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

New User


Joined: 24 Aug 2007
Posts: 24
Location: bangalore

PostPosted: Tue Oct 23, 2007 8:17 pm
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Oct 23, 2007 11:21 pm
Reply with quote

Easy - Ask THEM to supply the JCL that will accomplish this.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Oct 25, 2007 7:40 am
Reply with quote

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
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Forcing a step to run (even if abended) JCL & VSAM 8
No new posts step by step trace 4 ISPF dialog call... TSO/ISPF 17
Search our Forums:

Back to Top