Searching the fields

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
suryadev
Premium Member
Premium Member
Posts: 211
Joined: Sun Jul 11, 2010 7:39 pm

Searching the fields

Post by suryadev »

Hello,

I have a requirement where I need to search for fields from a given query and then based on the search if I find the searched fields then I need to run the DS job to update those fields.

So basically there are 10 jobs and based on the search I need to find specified fields and then select which jobs to run to update which fields
Thanks,
Surya
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Re: Searching the fields

Post by SURA »

suryadev wrote:I have a requirement where I need to search for fields from a given query
you mean, need to trigger a job based on the query result ?
Thanks
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
suryadev
Premium Member
Premium Member
Posts: 211
Joined: Sun Jul 11, 2010 7:39 pm

Post by suryadev »

Yes, exactly

Need to trigger the correct job based on the query result search for fields


Thank you
Thanks,
Surya
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Post by SURA »

Is the search numbers keep on grow / fixed and there won't be any changes?
Thanks
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
suryadev
Premium Member
Premium Member
Posts: 211
Joined: Sun Jul 11, 2010 7:39 pm

Post by suryadev »

There are some 10 queries which come as an alert, based on the alert/query which we see we need to do a search and pull the trigger for the correct job.

They are fixed queries 10 different kinds but fixed fields for each of them


Thank you
Thanks,
Surya
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

So, one server job to execute the query and store the result in its user status area, a Nested Condition activity to filter based on the value in the user status area with ten triggers to fire the ten Job activities. Maybe an Otherwise trigger as well.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
suryadev
Premium Member
Premium Member
Posts: 211
Joined: Sun Jul 11, 2010 7:39 pm

Post by suryadev »

Thank you!

Actually I need not run the query, only thing I need to check for the field names in the query and depending on the field names the jobs should be triggered.

Also I assume all these job activities and triggers will be in sequence job.
Thanks,
Surya
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

OK, use Nested Condition activity to search the query (use Index() function) and select the appropriate job to be run.

Yes, these are in a sequence.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
suryadev
Premium Member
Premium Member
Posts: 211
Joined: Sun Jul 11, 2010 7:39 pm

Post by suryadev »

Thanks very much!

I think that will help to do a sequence job and using the job activities to trigger other parallel jobs.
Thanks,
Surya
Post Reply