Delete custom routine exported by mistake as read-only

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
yserrano
Premium Member
Premium Member
Posts: 52
Joined: Thu Jan 31, 2008 1:23 pm
Location: Santo Domingo

Delete custom routine exported by mistake as read-only

Post by yserrano »

Hello, I am trying to accomplish what is described in this Resolved Topic, but, I am using DataStage V8 and the the query:
UPDATE DS_ROUTINES SET READONLY = 'NRO' WHERE DSRID = 'routinename'
works only for those routines which come with the base product. My custom routine is not in that table.

I will appreciate your help pointing the right table or correct method to delete the routine.

Best regards,

Yonny Serrano[/url]
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Can't you simply delete it using Designer?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
deanwalker
Participant
Posts: 82
Joined: Tue Jan 22, 2008 10:37 am
Location: UK

Post by deanwalker »

If it has been imported as ReadOnly, this flag is set in the new repository and the Designer will not delete a readonly Routine. It will not appear in DS_ROUTINES if it has not been compiled yet, and if it has been compiled then setting NRO in the old repository will have no effect. You will need to delete it from the new repository, and you will need help from your supplier for this.

ray.wurlod wrote:Can't you simply delete it using Designer? ...
asitagrawal
Premium Member
Premium Member
Posts: 273
Joined: Wed Oct 18, 2006 12:20 pm
Location: Porto

Post by asitagrawal »

If you still have the .dsx file (i.e the exported file containing the routines)...
then search for ReadOnly phrase...

Code: Select all

.
.
OLEType "CRoutine"
Readonly "0"
Category "EPM89_Routines\\Generic"
.
.
Change the value "0" to "1" for ReadOnly prameter... and import again..
You must change this for the applicable objects.. I assume that that you have exported only the routines.

Remember...this is not a very good approach...but it has helped me many times... :)

HTH :)
Share to Learn, and Learn to Share.
yserrano
Premium Member
Premium Member
Posts: 52
Joined: Thu Jan 31, 2008 1:23 pm
Location: Santo Domingo

Post by yserrano »

Change the value "0" to "1" for ReadOnly prameter... and import again..
I can't, Designer does not let me overwrite a ReadOnly routine.
It will not appear in DS_ROUTINES if it has not been compiled yet
It is compiled but still it does not appear there.
[/quote]
virgenie
Participant
Posts: 3
Joined: Mon Oct 22, 2007 8:46 am

Post by virgenie »

yserrano wrote:
Change the value "0" to "1" for ReadOnly prameter... and import again..
I can't, Designer does not let me overwrite a ReadOnly routine.
It will not appear in DS_ROUTINES if it has not been compiled yet
It is compiled but still it does not appear there.
i just had this problem in V8.1. I deleted it in the developer because i am administrator. And then, i just imported again my routine with the value ReadOnly set as "0" in my dsx.
harish_s_ampeo
Participant
Posts: 26
Joined: Tue Dec 18, 2007 6:31 am

Post by harish_s_ampeo »

I have a similar problem.Am using Datastage Server V8.0 . Even if I login as admin, am not able to delete the routine from designer.
jaysheel
Participant
Posts: 57
Joined: Mon Apr 07, 2008 1:54 am
Location: Bangalore

Post by jaysheel »

I have the similar problem. And to add more the routine wont show up in the transformer derivation window. I can't delete it, rename it or overwrite it using another .dsx file. What I did is simply created another routine and replaced all my jobs which were using the old routine. Anyone has a solution for this ?
- Jaysheel -
Post Reply