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
 

 

CA-7 Scheduling Issue

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
swastik

New User


Joined: 14 May 2007
Posts: 3
Location: Minnetonka

PostPosted: Tue May 15, 2007 2:37 am    Post subject: CA-7 Scheduling Issue
Reply with quote

I have a situation, where I have to run a particular job (JOB1) in two different scenarios. One is when the header job(A) will create an empty file (RC=1) and another when it will create an non empty file (RC=0).

RC=1
(empty o/p file)
A -----------------> JOB1
|
| RC=0
| (Non empty o/p file)
|
B
|
C
|
JOB1

Could anybody suggest me any preferable solution?
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue May 15, 2007 2:48 am    Post subject:
Reply with quote

Hello and welcome to the forums icon_smile.gif

I believe you can accomplish what you want by using COND= on the EXEC statements after the first step has run and set the condition code.

There may be no CA-7 change required.
Back to top
View user's profile Send private message
swastik

New User


Joined: 14 May 2007
Posts: 3
Location: Minnetonka

PostPosted: Tue May 15, 2007 3:36 am    Post subject: Re: CA-7 Scheduling Issue
Reply with quote

My intention here is to trigger two different jobs(B and JOB1) from a single header job (A).
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue May 15, 2007 7:10 pm    Post subject:
Reply with quote

Hello,

Thet may be your current intention, but is there some business/technical reason that these 3 processes not be run conditionally in the same job?
Back to top
View user's profile Send private message
swastik

New User


Joined: 14 May 2007
Posts: 3
Location: Minnetonka

PostPosted: Tue May 15, 2007 7:34 pm    Post subject: Re: CA-7 Scheduling Issue
Reply with quote

Yes. In the first phase if I have an empty output file then it should by pass the process (B->C), but if the the output file is non empty then it should execute the process(B->C) to get the required input file for the JOB1. Hope this clears the situation.

Thanks for your co-operation.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue May 15, 2007 8:44 pm    Post subject:
Reply with quote

You're welcome.

My question still remains - why is this better served using 3 jobs that have to be maintained rather than a single job that conditionally executes the needed steps?

If JOB1 is and must remain a totally separate job, "this" job could be set up to create the needed output conditionally. Once this job completes (either way), the file would be created. JOB1 could be defined as a successor job in the schedule depending on the successful completion of "this" job.
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 -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts scheduling between OPC and TWS give u... nsbl IBM Tools 3 Sun Mar 12, 2017 5:35 pm
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts DFHRESPONSE returns issue divated CICS 3 Wed Nov 02, 2016 6:32 pm
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm
No new posts REXX Screen not working due to LINKED... sundarkudos CLIST & REXX 1 Mon May 09, 2016 1:44 pm


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