DS Job & dll library
Moderators: chulett, rschirm, roy
DS Job & dll library
Hi,
Can we execute in DS Job any program from dynamic library (dll)?
Regards,
Piotrek
Can we execute in DS Job any program from dynamic library (dll)?
Regards,
Piotrek
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
I found only infrmation about using DS API. But it is not what i'm looking for. I have an external program implemented as dll library and I need to execute it. Just like a command stage works, but not for exe or shell command.Sainath.Srinivasan wrote:It is part of the dsjob dlls that comes as online manuals pdf.
Regards,
Piotrek
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You will need to be much more precise. Most DLLs contain multiple entrypoints, exposing more than one function. The individual functions are callable. It may be that your particular DLL contains only one function, but you did not say so.
It's not easy to call them, but you can set the functions up as being callable through the GCI from DataStage BASIC. You can then create a Routine containing that call. Download the GCI manual from IBM's UniVerse web site.
It's not easy to call them, but you can set the functions up as being callable through the GCI from DataStage BASIC. You can then create a Routine containing that call. Download the GCI manual from IBM's UniVerse web site.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
So I think it will be much easier and faster to re-write source code of that library to standard executable appray.wurlod wrote: It's not easy to call them, but you can set the functions up as being callable through the GCI from DataStage BASIC. You can then create a Routine containing that call. Download the GCI manual from IBM's UniVerse web site.
Regards,
Piotrek
-
- Premium Member
- Posts: 224
- Joined: Tue Sep 24, 2002 7:32 am
- Location: Denver, CO USA
DataStage on Windows can use ActiveX dlls. You have to import them using Manager - go to Import then External Function Definitions. If I remember correctly, the import process will create 2 routines (one you call and it calls the other). On v6.x, there was a bug related to in/out parameters in your call (search the forum, I think I posted some details). I doubt the bug has been fixed in 7.x.
John
John
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Premium Member
- Posts: 224
- Joined: Tue Sep 24, 2002 7:32 am
- Location: Denver, CO USA