How to make Parallel Routine Environment Independent

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
just4geeks
Premium Member
Premium Member
Posts: 644
Joined: Sat Aug 26, 2006 3:59 pm
Location: Mclean, VA

How to make Parallel Routine Environment Independent

Post by just4geeks »

Hello,

We have a Parallel Custom Routine:
Routine Name: ParllelRoutineZreplace1
Type: External Function
Object Type: Object
Library Path: /opt/IBM/dev/ParallelRoutineZreplace1.so

Now the issue is whenever we need to move the code using this routine to other environment, we have to recompile the job every time to take new Library Path. (for example: /opt/IBM/QA/ParallelRoutineZreplace1.so)

How can we make this routine work without recompilation. We generally move binaries and do not compile code in non-dev environments.
is there a way to parametrize the path in Routine? or do we have a way so that the absolute Library path need not be defined in routine?

Thanks for help in advance.
Attitude is everything....
eph
Premium Member
Premium Member
Posts: 110
Joined: Mon Oct 18, 2010 10:25 am

Post by eph »

Hi,

Did you try to set the path in an environment variable that you can call directly or set in a parameter set?
If I'm not wrong, for each modification of the routine (as I recall code change and also for path change) you have to recompile all jobs depending on it.

Eric
Post Reply