How can i inport a dll in datastage designer

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
PeterPol
Premium Member
Premium Member
Posts: 73
Joined: Wed Mar 08, 2006 8:59 am

How can i inport a dll in datastage designer

Post by PeterPol »

Hi everyone,

We have stille problems with importing a c++ (Borland Dll) into designer.

Our ETl envioroment stands on a Windows machine and we uses Parallel- and Server jobs.

For parallel jobs we can make an external routine that can use .os file (library file). For the server job enviroment you can make UnviVerse routines with the General Calling Interface (GCI).

With GCI you make routines from c or cpp (C) sources.
- You must compile these sources with the VS .NET c++ compiler
- Than you make a library for these sources.
- Finaly you uses GCI to make a DLL and put these dll to the GCI library list so you can call it in a server routine.
- Importing a dll directly is not supported

But they (IBM) have told me that I can use external dll's in Designer without using the original source.....

Can enyone tell me if it's possible to use an external dll in Designer without changing the dll?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Re: How can i inport a dll in datastage designer

Post by chulett »

PeterPol wrote:But they (IBM) have told me that I can use external dll's in Designer without using the original source.....
Did they not also tell you how to do this? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
PeterPol
Premium Member
Premium Member
Posts: 73
Joined: Wed Mar 08, 2006 8:59 am

Post by PeterPol »

Nope!!

We have now make a call to IBM for this problem..

But maybe can someone help us..... :)
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Maybe. :wink: If I had a clue I'd help, but this is not my cup o' tea. When you do get the solution, please post it back here.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

In Manager, choose Import > External Function Definitions
(see Manager Guide, page 8-17)

This places an entry in the Routines branch of the Repository describing the external (ActiveX) function, how many arguments it has, and the DLL in which it resides and the automation class within that DLL.

Note that this option is only enabled if your DataStage server is on a Windows platform (there's no such thing as ActiveX on UNIX).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Which would explain why I've never seen that option light up. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
PeterPol
Premium Member
Premium Member
Posts: 73
Joined: Wed Mar 08, 2006 8:59 am

Post by PeterPol »

In Manager, choose Import > External Function Definitions
We have tried that solution but for us it's not working. We get the message: error loading type library\DLL.

What do we do wrong????
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The DLL in question must be an OLE server, so as to expose ActiveX objects. Is yours?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
PeterPol
Premium Member
Premium Member
Posts: 73
Joined: Wed Mar 08, 2006 8:59 am

Post by PeterPol »

he DLL in question must be an OLE server, so as to expose ActiveX objects. Is yours?
I don't understand your reply?? How can I make an OLE Server for this dll?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I guessing that, since the question does not make any sense, that the answer wouldn't either. Is there someone else there whom you could run the question by, see if they understand the change needed?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Read the Manager Guide (page 8-17). The only external functions that can be imported are ActiveX (OLE) functions. Therefore the DLL must have been constructed as an OLE server.

Exactlly how this is achieved depends on the language and the environment, and I don't profess to be an expert - the last time I did one of these was in Visual Basic 5.0!
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