updating DS_ROUTINES custom routine to 'NRO'

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
garthmac
Charter Member
Charter Member
Posts: 55
Joined: Tue Oct 21, 2003 9:17 am
Location: UK

updating DS_ROUTINES custom routine to 'NRO'

Post by garthmac »

Hi

I'm trying to update a specific custom routine in DS_ROUTINES but I'm not sure of the exact statement. To update all I would use:

UPDATE DS_ROUTINES SET READONLY = 'RO' WHERE READONLY = 'NRO';

My project is not protected, and I can't import a custome routine over an existing one. I hear that there may be a patch for this - I'm waiting for IBM support to get back to me, but I've not heard from them. I haven't been able to use version control while we have two different DataStage server versions installed. Any help would be greatly appreciated.

We're using DS 7.5.1A on AIX 5.3
Garth
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

What's the error message?
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
garthmac
Charter Member
Charter Member
Posts: 55
Joined: Tue Oct 21, 2003 9:17 am
Location: UK

Post by garthmac »

Hi Ken

The error I get on importing the routine is "No objects found for import!"

The custom routine is read-only, but I should still be able to import, which will overwrite, just like I can with jobs.
Garth
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

You can't import over read-only objects. So I guess you're setting them to read and then trying the import. I've never done this, so I can't help much other than to say make sure your dsx file also shows them as read. Are they even in your dsx file?
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
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Are you sure you exported it? :wink:

You need to explicity include 'read only' objects when doing so.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Add AND WHERE DSRID = "{your routine}" to the query.
garthmac
Charter Member
Charter Member
Posts: 55
Joined: Tue Oct 21, 2003 9:17 am
Location: UK

Post by garthmac »

I definatley exported it, and I included read only objects :)

Thanks Arnd for the DSRID addition. I've now updated the routine to 'NRO'.
Garth
Post Reply