delete datastage jobs

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
srinivenigalla
Participant
Posts: 35
Joined: Thu Aug 11, 2005 5:21 pm

delete datastage jobs

Post by srinivenigalla »

Is there any command to delete jobs based on the status of the jobs in the project / folder
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

No. There's no API to delete jobs, the only approved method is via the clients.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
dsexplorer
Premium Member
Premium Member
Posts: 23
Joined: Wed Apr 16, 2008 5:34 am
Location: Prague,Cz

Post by dsexplorer »

Below presentation describes how to manually delete a DataStage job for all versions of Information Server DataStage.

http://publib.boulder.ibm.com/infocente ... layer.html
Regards
DSExplorer
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

And you'll note that the first thing it says is that it is only for those circumstances when you can no longer do it from the client.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Their approach to the local repository leaves a heap of orphan entries in DS_JOBOBJECTS.

You still need to delete all the job's RT_ entries and DS_TEMPnnn table, so you still need to know the job number before deleting the job entry from DS_JOBS.

I prefer the following approach, using DataStage SQL:

Code: Select all

DELETE FROM DS_JOBOBJECTS WHERE OBJIDNO = (SELECT JOBNO FROM DS_JOBS WHERE NAME = '<<Job name>>');
DELETE FROM DS_JOBS WHERE NAME = '<<Job name>>';
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