How to rename a category

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

Mark_E
Premium Member
Premium Member
Posts: 72
Joined: Fri Jan 23, 2004 3:04 am

How to rename a category

Post by Mark_E »

Hi,
just a quick and hopefully easy question.

Does anyone know whether it is possible to rename a job category? I have tried looking in both Manager and Designer and have not been able to do so.

I do not really want to create a new category and then start saving the jobs from the incorrectly named category into the new (there are just too many of them), that seems to be the only real alternative right now.

Any advice would be much appreciated
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Mark_E - well, the question is quick & easy. But the answer isn't what you wanted to hear :(

If your category name is quite unique then you could do an export, do a global replace in the .dsx file and re-import with the new name. That's what I did when I had a lot of jobs in a category.

Hopefully someone knows a way to do it easily from the Manager...
Luk
Participant
Posts: 133
Joined: Thu Dec 02, 2004 8:35 am
Location: Poland
Contact:

Post by Luk »

you can (in manager) create new category, select (ctrl+A) all jobs in old one and simple move them (using mouse) to a new category folder :)
LUK
Mark_E
Premium Member
Premium Member
Posts: 72
Joined: Fri Jan 23, 2004 3:04 am

Post by Mark_E »

Thanks guys, I have tried both and they have done exactly what was needed
mark_e
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Luk - thanks! I will now rename some of my categories... just because I can... :)
Luk
Participant
Posts: 133
Joined: Thu Dec 02, 2004 8:35 am
Location: Poland
Contact:

Post by Luk »

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

Post by ray.wurlod »

No-one suggested updating the CATEGORY column in the underlying Repository tables. This is good, people are learning to avoid hacking the Repository, whose structure is about to change radically.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Hacking is fun. You hack too.
Mamu Kim
DEVESHASTHANA
Participant
Posts: 47
Joined: Thu Sep 16, 2004 5:26 am
Location: India

Post by DEVESHASTHANA »

Hi Ray ,

can u please tell what u are talking abt replacing Category name in Repository,

If there is any short cut to do category name change directly in repository,please share it,



Regards,

DevesH
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

You can do a SQL update to DS_JOBS and do the same thing. Ray does not want you to go around the product like that. It is a wise thing to not do these things or at least do them when you are the only one logged in.
Mamu Kim
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Besides, why would you want to go around 'hacking' DataStage internals when all it takes is a moment or two to create a new Category and then move jobs into it via the Manager? :?

Use the GUI, Luke! :wink:
-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 »

The DataStage Repository is ALL GOING TO CHANGE in the very near future!

That's the main reason I'm backing off from advising people how to hack.

There is a secondary reason related to the fundamental interconnectedness of all things (in the DataStage Repository) - for example, to change a category correctly ought also to involved at least checking, if not rebuilding, the index on CATEGORY in the relevant table(s).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vinaymanchinila
Premium Member
Premium Member
Posts: 353
Joined: Wed Apr 06, 2005 8:45 am

Post by vinaymanchinila »

Hi,
I have selected all tehjobs in one category and when I try to drag them over to another category in the left panel , it doesnt look like they are transfarable, are there any options that need to be changed?

Thanks,
Thanks,
Vinay
vinaymanchinila
Premium Member
Premium Member
Posts: 353
Joined: Wed Apr 06, 2005 8:45 am

Post by vinaymanchinila »

When switched between View-"Extended Job View" , it lets you move the jobs !
Thanks,
Vinay
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

In other words, if you have the 'Extended Job View' option enabled - turn it off.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply