protected - routine

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
mystuff
Premium Member
Premium Member
Posts: 200
Joined: Wed Apr 11, 2007 2:06 pm

protected - routine

Post by mystuff »

Is there a way we could set a routine (only one routine) from not being accessed by anyone other than dsadm.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

"Accessed"? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Mike
Premium Member
Premium Member
Posts: 1021
Joined: Sun Mar 03, 2002 6:01 pm
Location: Tampa, FL

Post by Mike »

I don't think so, but here are a couple of workarounds I could suggest:

1) Threat of severe bodily injury with a baseball bat. :wink:

or

2) Insert a check for the user and exit without doing anything if the user is not dsadm.

Mike
mystuff
Premium Member
Premium Member
Posts: 200
Joined: Wed Apr 11, 2007 2:06 pm

Post by mystuff »

Sorry by accessed i meant "readable". Developers should be able to use the routine, but not read the code.
Mike
Premium Member
Premium Member
Posts: 1021
Joined: Sun Mar 03, 2002 6:01 pm
Location: Tampa, FL

Post by Mike »

What happens if you only import the executable for a routine? Not sure if that is even possible since I've never attempted it. Routine code does not turn into inline code like a transform, so I don't see why you'd need the source code to compile a job that calls it.

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

Post by ray.wurlod »

You can not protect the source code of the Routine, since it is a row in the Repository table DS_ROUTINES. You can make it read-only (to all) via the READONLY column. But this would not prevent anyone from inspecting the code.

If you really want to hide a routine, then you have to resort to a mechanism described in the DataStage BASIC manual but not often implemented. And you would not be able to edit the routine code using the Manager or Designer clients without reversing the mechanism.

This technique involves you creating and compiling the Routine as usual, but then moving the source code from DS_ROUTINES to somewhere more secure, probably a directory. For example, to put the routine source code for MyRoutine into the VOCLIB hashed file:

Code: Select all

COPY FROM DS_ROUTINES TO VOCLIB MyRoutine DELETING
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