Job design to do table maintenance task

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
jeisma
Participant
Posts: 18
Joined: Mon Mar 20, 2017 12:19 pm

Job design to do table maintenance task

Post 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!
PaulVL
Premium Member
Premium Member
Posts: 1315
Joined: Fri Dec 17, 2010 4:36 pm

Post by PaulVL »

If it works, I would not change it.
jeisma
Participant
Posts: 18
Joined: Mon Mar 20, 2017 12:19 pm

Post 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.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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...
-craig

"You can never have too many knives" -- Logan Nine Fingers
jeisma
Participant
Posts: 18
Joined: Mon Mar 20, 2017 12:19 pm

Post 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.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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:
-craig

"You can never have too many knives" -- Logan Nine Fingers
jeisma
Participant
Posts: 18
Joined: Mon Mar 20, 2017 12:19 pm

Post by jeisma »

preparing, like updating old records before new ones come in.

thank you for your inputs.
Post Reply