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

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


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ojdiaz

New User


Joined: 19 Nov 2008
Posts: 98
Location: Spain

PostPosted: Thu Feb 05, 2009 9:43 pm
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

Moderator Emeritus


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

PostPosted: Mon Feb 09, 2009 9:34 pm
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: 1702
Location: Australia

PostPosted: Tue Feb 10, 2009 6:34 am
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: 98
Location: Spain

PostPosted: Thu Feb 12, 2009 5:35 pm
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

Moderator Emeritus


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

PostPosted: Thu Feb 12, 2009 9:39 pm
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: 98
Location: Spain

PostPosted: Thu Mar 12, 2009 9:03 pm
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

Moderator Emeritus


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

PostPosted: Thu Mar 12, 2009 9:22 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
No new posts Help Control-R IBM Tools 2
No new posts Reference for COND parameter. JCL & VSAM 1
Search our Forums:

Back to Top