Page 1 of 1

Job design to do table maintenance task

Posted: Thu Jun 01, 2017 3:14 pm
by jeisma
hi,

i needed a job to update records on the db. so i created

row_generator -> db2_connector

above works, but, how would you design the job differently?


TIA!

Posted: Thu Jun 01, 2017 3:24 pm
by PaulVL
If it works, I would not change it.

Posted: Thu Jun 01, 2017 3:28 pm
by jeisma
ok. i must mention RG is creating one dummy record just to have an input to next stage. because it will not work having just db2 stage there by itself. this design just feels a little awkward.

Posted: Thu Jun 01, 2017 4:59 pm
by chulett
Well, that's how you do it in a Parallel job when you just need to trigger an action in the database. In a Server job you would start from a Transformer, they can be re-jiggered to serve as a "row generator".

Are you doing something before/after SQL or some kind of "hard-coded" update? Wondering if this really needs to be a job...

Posted: Fri Jun 02, 2017 8:30 am
by jeisma
there is no before/after sql. this job is actually part of a sequence. it's like preparing the table before the main job does it's thing.

Posted: Fri Jun 02, 2017 8:49 am
by chulett
"Preparing the table"?

If you're good, go ahead and mark this as resolved and I'll move along. I'm just morbidly curious at this point. :wink:

Posted: Fri Jun 02, 2017 8:53 am
by jeisma
preparing, like updating old records before new ones come in.

thank you for your inputs.