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
 

 

Control-M Planning a job to submit by a timeline or a cond

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
ojdiaz

New User


Joined: 19 Nov 2008
Posts: 90
Location: Spain

PostPosted: Thu Feb 05, 2009 9:43 pm    Post subject: Control-M Planning a job to submit by a timeline or a cond
Reply with quote

Hello

I have an interesting issue with Control-M under and IBM 390 mainframe and I want to avoid to use a dummy job for the following

I have a job that currently has 2 input conditions, they are both generated by two differents systems. One of them, let's name it CONDITION A, is generated early in the morning, around 1:00 am, the other, CONDITION B can be received at time, around 3:00 am or could be quite late, after 8:00 am.

We have an issue when the B CONDITION is late on its generation, and we need our job to be submited at a deadline, around 3:30 am, without any regards of this condition

By this reason, we need to submit this job in two different cases:

1.- Once both conditions has been generate by their other corresponding job, or
2.- Once a Time has come, the job should submit, without any regards of B Condition.

Is there a way to do this in Control-M wihtout creating a dummy job that gives this condition

Currently, the conditions for the job is like this:

Code:

===========================================================================
IN       HI$$M012-HI$$PASB-JJ ODAT      HI$$INM1-HI$$PASB-JJ ODAT         
                                                                           
CONTROL                                                                   
RESOURCE                                                                   
TIME: FROM       UNTIL       PRIORITY     DUE OUT       SAC      CONFIRM   
TIME ZONE:                                                                 
===========================================================================
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: Mon Feb 09, 2009 9:34 pm    Post subject:
Reply with quote

Hello and welcome to the forum,

One way to do what you want is to make the B file a gdg that is re-created every day. The first generation will always be an empty file. When the process that creates the actual data is run, it will be written as a +1.

When the job that reads both files executes, it will either get an eof-of-file immediately (only the empty generation is available) or it will read the data that was uploaded.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Tue Feb 10, 2009 6:34 am    Post subject:
Reply with quote

Hi,

I can't see any way around your problem, if the definition has 2 IN-CONDITIONS, then both conditions need to be satisfied, hence you will need someting to post the B condition (dummy job), or you could remove the B condition and add a from time of 3:30am to your definition.

This means your job will not run until 3:30am even if the B job has run earlier.


Gerry
Back to top
View user's profile Send private message
ojdiaz

New User


Joined: 19 Nov 2008
Posts: 90
Location: Spain

PostPosted: Thu Feb 12, 2009 5:35 pm    Post subject:
Reply with quote

Thanks for your reply guys. I'm a bit confused about the GDG issue posted by Dick Scherrer, perhaps this is the wrong post? icon_confused.gif

gcicchet:

Thanks, I think I'll have to go with teh dummy job after all, and let it post the condition B at that time, no matter if the other job as already being submited or not.

I guess I can't do a

CondA OR Submit time in the conditions area

Thanks anyway, I like this forum, I'll be coming back more often if I have issues or anwers that i might know

Best Regards

Oliver
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: Thu Feb 12, 2009 9:39 pm    Post subject:
Reply with quote

Hello,

Quote:
I'm a bit confused about the GDG issue posted by Dick Scherrer, perhaps this is the wrong post?
No, this is the correct post. . .

Many places use a gdg that the first generation is always an empty file so that processing is not disrupted and "special" or "dummy" jobs are not needed. There should be no problem with an empty file, but a missing file causes exception processing (which is usually more complicated and error prone).
Back to top
View user's profile Send private message
ojdiaz

New User


Joined: 19 Nov 2008
Posts: 90
Location: Spain

PostPosted: Thu Mar 12, 2009 9:03 pm    Post subject:
Reply with quote

dick scherrer wrote:
Hello,

Quote:
I'm a bit confused about the GDG issue posted by Dick Scherrer, perhaps this is the wrong post?
No, this is the correct post. . .

Many places use a gdg that the first generation is always an empty file so that processing is not disrupted and "special" or "dummy" jobs are not needed. There should be no problem with an empty file, but a missing file causes exception processing (which is usually more complicated and error prone).


Oh! I understand now... I haven't think about it in that way. It might Work. Let me check if the condition is associated with a file, therefore it might be a valid solution. However, i think files are dated on this specific batch, i mean, they use ODATE as part of the file name

Thanks for your answer

Oliver
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: Thu Mar 12, 2009 9:22 pm    Post subject: Reply to: Control-M Planning a job to submit by a timeline o
Reply with quote

You're welcome - good luck icon_smile.gif

d
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm
No new posts how to DYNAMICALLY write sort cond to... mohamedmubee COBOL Programming 13 Fri Aug 26, 2016 11:46 pm
No new posts Don't allow CICS to submit batch jobs prino JCL & VSAM 5 Mon Jul 25, 2016 3:26 pm
No new posts COND parameter vs IF THEN ELSE Alks JCL & VSAM 11 Fri Jun 17, 2016 5:28 pm
No new posts Control-M manuals JPVRoff All Other Mainframe Topics 0 Fri May 20, 2016 11:15 am


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