Deleting the rows

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
kool_cons
Participant
Posts: 68
Joined: Thu Jul 07, 2005 3:41 pm

Deleting the rows

Post by kool_cons »

hai
Last edited by kool_cons on Thu Jan 05, 2006 12:44 pm, edited 1 time in total.
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Why are you implementing this using DS and not any other way?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Provide the table name as a job parameter.
Run the job in multiple instances, one per table.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kool_cons
Participant
Posts: 68
Joined: Thu Jul 07, 2005 3:41 pm

Post by kool_cons »

Ray,
If no of tables to be deleted is less than 10 tables, you idea is acceptable. but i need to delete 80 tables minimum. i am thking that batch job is good idea which can pass table names as parameters. but i dont know how to write a code/job control in job properties. if you guys have any sample code for basic programming,that would be great.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Why not just write a sql script to do this? Not every nail has to be whacked with the DataStage job hammer.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kool_cons
Participant
Posts: 68
Joined: Thu Jul 07, 2005 3:41 pm

Post by kool_cons »

i dont want to go with sql since my manager dont like this. So i need an approch with datastage job only.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Learn to write the job control code, or hire someone with the skill. It's not a big ask. The main design specification will be how the list of table names is to be delivered.
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