Parallel Routine

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
saikrishna
Participant
Posts: 158
Joined: Tue Mar 15, 2005 3:16 am

Parallel Routine

Post by saikrishna »

Hi

We have two C functions(in Unix)..namely fun1 and fun2...which are present in different files.

We are calling fun2 from fun1. The file that contains fun1 has the signature of the fun2.

Now in DataStage..We created parallel routine, that is calling fun1 (which intern calls fun2).....

This situation is not working with datastage...We are getting the following error in director:
Transformer_2: Failed to load the library "V0S2_CopyOfUntitled1_Transformer_2.o"; either the directory containing the library file
is not on the library search path, or the library was compiled on a system
that is incompatible with this system: Could not load "V0S2_CopyOfUntitled1_Transformer_2": rtld: 0712-001 Symbol fun2__Fv was referenced
from module /dstage/Ascential/DataStage/Projects/test/RT_BP40.O/V0S2_CopyOfUntitled1_Transformer_2.o(), but a runtime definition
of the symbol was not found..

If we use the two functions in the same file and compile to object file..then calling fun1 from datastage is working fine.....

Please help us in this integration scenario

We are expecting the problem to be in making the 2 files into one object file...

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

Post by ray.wurlod »

There's no problem putting as many functions as you like into one object file. The make procedure will ensure that they are all visible.
Is this library visible via your shared library search path (that is, the directories named in the LD_LIBRARY_PATH, LIBPATH or SHLIB_PATH environment variable)?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
saikrishna
Participant
Posts: 158
Joined: Tue Mar 15, 2005 3:16 am

Post by saikrishna »

Yes Ray....

We are using object option in object type instead of library option.....

the path of the object file along with the object file name is been specified in Library path

The object file is visible in the Library path.....

If we make a single file containing two functions (fun1 and fun2) into object file...then using that object file in the DataStage jobs..it is working fine....

the problem is with the multiple functions in different files....Could u pls direct us in this regard....
Eric
Participant
Posts: 254
Joined: Mon Sep 29, 2003 4:35 am

Post by Eric »

I think each object library you want to create should have it's own parallel rountine definition in your DataStage project. You can then reference the different methods though it's defined parallel routine reference.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Are the two files in the same location?
Have you tried calling the two routines indivudually from datastage?
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
saikrishna
Participant
Posts: 158
Joined: Tue Mar 15, 2005 3:16 am

Post by saikrishna »

Eric

If we design a seperate parallel routines for each C routine files...It wont solve my problem...as Inside the second C file...It uses the functions of first file....So I need to integrate in C/Unix environment not at datastage level.....


kumar_s

The two files are in the same location in Unix....I tried calling the functions in the files separately..It is working....
devnull
Premium Member
Premium Member
Posts: 37
Joined: Wed Mar 29, 2006 11:17 am
Location: Minneapolis, MN USA

Post by devnull »

saikrishna wrote:Eric

If we design a seperate parallel routines for each C routine files...It wont solve my problem...as Inside the second C file...It uses the functions of first file....So I need to integrate in C/Unix environment not at datastage level.....


kumar_s

The two files are in the same location in Unix....I tried calling the functions in the files separately..It is working....
How would you do this with a buildop?
Michael Mabin
Minneapolis, MN USA
d3vvnull@com.gmail
(Reverse com and gmail to send email)
Post Reply