Job Run Condition

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Amuktamalyada
Participant
Posts: 19
Joined: Mon May 01, 2006 11:27 am

Job Run Condition

Post by Amuktamalyada »

Hi All,

I have a sequencer which is already in place.

We have realised that the job was runnig for tomorrow if accidentally ran by the support team.

This job gets its date from a table which holds run date for the job.

For instance : if the job ran for today and when accidentally some one runs it again it runs for tomorrow as the earlier run updates the table with the date as sysdate+1.

The idea is to write a routine which would control this.

I am laging behind in writing routines.Any help would be truly thanked.

Thanks,
Mukthi
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Accidently huh? No amount of code can outsmart stupids.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Amuktamalyada
Participant
Posts: 19
Joined: Mon May 01, 2006 11:27 am

Post by Amuktamalyada »

This is definitely a challenge for me to learn it..
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Ok, I am still blurry on the requirement. If todays cycle ran and someone tries to run it again it should not run. Is that correct?
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
oacvb
Participant
Posts: 128
Joined: Wed Feb 18, 2004 5:33 am

Post by oacvb »

Write a Stored Procedure and check for the existence of record for current day, if it's available throw an exception else insert a record in control table then it proceed as you want. Call the Stored Procedure from job. Hope it satisfies your requirement.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You could always take a training class
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply