Hi,
Could anyone please let me know on how to invoke a Java class from Datastage.
The requirement is to invoke a java class and use its properties from Datastage and then propagate the records in the form of XML.
Amy help on this will be very helpful
Invoke Java Class from Dstage
Moderators: chulett, rschirm, roy
Could this not be uncomplicated somehow, perhaps by using whatever scheduling you may use to call the Java component first, then trigger the Datastage process after the XML is produced?
Furthermore, what exactly does "use its properties from Datastage" mean?
One option might be to employ a before job sub-routine.
PS. Sorry I'm not Amy
Furthermore, what exactly does "use its properties from Datastage" mean?
One option might be to employ a before job sub-routine.
PS. Sorry I'm not Amy
Mark Winter
<i>Nothing appeases a troubled mind more than <b>good</b> music</i>
<i>Nothing appeases a troubled mind more than <b>good</b> music</i>
-
- Premium Member
- Posts: 892
- Joined: Thu Oct 16, 2003 5:18 am
JavaPack makes it a lot more elegant, as you can directly interact on a row by row basis with your class. I have a more detailed entry on the subject in my blog below, but basically, DataStage gives control to your class when it (DataStage) needs a row (if your java stage is a source) or when it (DataStage) is ready to give you a row (if your java stage is a target). Your java class, then, is provided with a set of API calls that it can make "back" to the DataStage engine to inspect things or ultimately just write a row to a link, or receive data from a link. It's easy to do if you are comfortable with java and is by far the easiest way to "extend" DataStage functionality. There is source code at that blog entry.
...and it's "in the box" with DataStage nowadays (no cost).
Ernie
...and it's "in the box" with DataStage nowadays (no cost).
Ernie
Ernie Ostic
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>