Delete Categories

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
shrey3a
Premium Member
Premium Member
Posts: 234
Joined: Sun Nov 21, 2004 10:41 pm

Delete Categories

Post by shrey3a »

Hi,

We are not able to delete few empty Categories, tried it from manager, designer but it gives the message "Record Category_Name in the file DS_JOBS does not exist.

Thanks,
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Try selecting View > Refresh.
Chances are that your first attempt deleted the categories successfully but the client did not auto-refresh.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
sachin1
Participant
Posts: 325
Joined: Wed May 30, 2007 7:42 am
Location: india

Re: Delete Categories

Post by sachin1 »

Hello Ray i tried deleting category with jobs inside it as well as empty category from client machine, it deletes immediately and refreshes.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

But maybe shrey3a's didn't.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
shrey3a
Premium Member
Premium Member
Posts: 234
Joined: Sun Nov 21, 2004 10:41 pm

Post by shrey3a »

Hi ray,

I tried it deleting, refreshing, even logging it again ...doing it from different m/c but its same.

Thanks,
shrey3a
Premium Member
Premium Member
Posts: 234
Joined: Sun Nov 21, 2004 10:41 pm

Post by shrey3a »

Hi,

They are empty directories and gives message "Record Category_Name in the file DS_JOBS does not exist" even when we open up designer window pops up for each such directories and we have to click several times before opening up the job in other category. Is there a way to clean up DS_JOBS or DS_OBJECTS.

Thanks
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The message would seem to indicate you had a job called 'Category_Name' or did you replace that text?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

It's probably not the files but the indexing.
Get exclusive access to the project and execute DS.REINDEX ALL
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
shrey3a
Premium Member
Premium Member
Posts: 234
Joined: Sun Nov 21, 2004 10:41 pm

Post by shrey3a »

Tried everything but its same. Can we delete categories from command line.

Thanks,


[quote="ray.wurlod"]It's probably not the files but the indexing.
Get exclusive access to the project and execute [b]DS.REINDEX ALL[/b][/quote]
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Job Categories are separate records in DS_JOBS beginning with \\\.
For example, to delete the category MyJobs\LoadHash you could execute

Code: Select all

DELETE FROM DS_JOBS WHERE NAME = '\\\MyJobs\LoadHash\';
It might be worth while to check first that the category is empty.

Code: Select all

SELECT CATEGORY, COUNT(*) AS ITEMS FROM DS_JOBS GROUP BY CATEGORY HAVING COUNT(*) = 1;
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