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
 

 

Bypassing second step till 7 runs of first step

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Bypassing second step till 7 runs of first step
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Tue Oct 23, 2007 3:30 pm    Post subject: Reply to: Bypassing second step till 7 runs of first step
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: 743
Location: Germany

PostPosted: Tue Oct 23, 2007 3:57 pm    Post subject:
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: 680
Location: NJ

PostPosted: Tue Oct 23, 2007 4:13 pm    Post subject:
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    Post subject: Reply to: Bypassing second step till 7 runs of first step
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Tue Oct 23, 2007 4:44 pm    Post subject: Reply to: Bypassing second step till 7 runs of first step
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    Post subject: Reply to: Bypassing second step till 7 runs of first step
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Tue Oct 23, 2007 5:44 pm    Post subject: Reply to: Bypassing second step till 7 runs of first step
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

Moderator Team Head


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

PostPosted: Tue Oct 23, 2007 6:00 pm    Post subject: Re: Reply to: Bypassing second step till 7 runs of first ste
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    Post subject: Reply to: Bypassing second step till 7 runs of first step
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: 680
Location: NJ

PostPosted: Tue Oct 23, 2007 7:08 pm    Post subject:
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    Post subject: Reply to: Bypassing second step till 7 runs of first step
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: 680
Location: NJ

PostPosted: Tue Oct 23, 2007 8:10 pm    Post subject:
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    Post subject: Reply to: Bypassing second step till 7 runs of first step
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: 8593
Location: Back in jolly old England

PostPosted: Tue Oct 23, 2007 11:21 pm    Post subject:
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: 1703
Location: Australia

PostPosted: Thu Oct 25, 2007 7:40 am    Post subject: Reply to: Bypassing second step till 7 runs of first step
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm
No new posts Single step utility for compare and u... ramprakashn JCL & VSAM 5 Fri Apr 29, 2016 3:43 pm
No new posts Compilation Error in Translation Step. amitc23 CICS 4 Tue Mar 01, 2016 12:24 pm
No new posts Extract specific step spool data enrico-sorichetti JCL & VSAM 1 Thu Feb 04, 2016 9:48 am


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