Waiting for a file the kicking off a job

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
rmcclure
Participant
Posts: 48
Joined: Fri Dec 01, 2006 7:50 am

Waiting for a file the kicking off a job

Post by rmcclure »

Newbie question:

I am looking itno a process where anytime a file appears in a directory a server job is kicked off.

In the ideal world:
A file appears -> Job 1 runs, kicks of Job 2 and job 1 ends -> Job 2 waits for a file runs a process, restarts Job 1 to start the waiting process all over.
I can't put this in one job because it will create a loop.


My questions are:
Can you submit a datastage job from the command line?
Will the execute command activity, execute the command and end the job or does it wait for the command to finish.
If I have a job sitting (for hours on end) with the wait for file activity, is it going to suck up processing power for nothing.
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Re: Waiting for a file the kicking off a job

Post by narasimha »

My questions are:
Can you submit a datastage job from the command line?
- Yes, look into dsjob

Will the execute command activity, execute the command and end the job or does it wait for the command to finish.
- It waits for the command to finish. (Define the triggers appropriately)

If I have a job sitting (for hours on end) with the wait for file activity, is it going to suck up processing power for nothing.
- It does run a process for it. But I dont think it is very intensive.
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
Post Reply