Cannot Delete a File

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
kld05
Charter Member
Charter Member
Posts: 36
Joined: Fri Apr 28, 2006 8:12 am

Cannot Delete a File

Post by kld05 »

I'm trying to clean up my project and am getting an error when I try to delete one job: "Cannot open exectuable job file RT_CONFIG118"

Does anyone know how to get around this?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What is job number 118?

Code: Select all

SELECT NAME, CATEGORY FROM DS_JOBS WHERE JOBNO = '118';
Have you made an earlier attempt to delete this job?
From the Administrator client or from a telnet session execute the command

Code: Select all

DS.CHECKER
This will check for orphaned jobs and hashed files associated with them.

If that doesn't work, post back here.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kld05
Charter Member
Charter Member
Posts: 36
Joined: Fri Apr 28, 2006 8:12 am

Post by kld05 »

Ray.

There was an attempt to delete these jobs which no doubt caused the issue. I am able to run the selects and retreive the object names but DS.CHECKER is not flagging the job as an orphan. I'm still unable to delete the job for some reason.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Can you see/open the particular job in Designer, Manager, Director?

If so, you should be able to delete it (once closed) from the GUI.

Otherwise, you will need to delete references to it from DS_JOBS and DS_JOBOBJECTS using SQL, and to remove the repository tables using recursive rm commands.
Make sure that you have two good backups of the project before proceeding!

Code: Select all

DELETE FROM DS_JOBOBJECTS WHERE CLASS = '2' AND OBJIDNO = '118';

DELETE FROM DS_JOBS WHERE JOBNO = '118';

SH -c "rm -rf RT_*118 DS_*118"
I'm assuming here that you don't have job number 1118 yet; if you do you will need a somewhat more specific set of rm commands.
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