Calling a Java Program from DataStage
Moderators: chulett, rschirm, roy
Calling a Java Program from DataStage
Is there any Stage in DS to call a java progarm and pass values to the java progarm and get the output into a sequential file.
-
- Premium Member
- Posts: 301
- Joined: Thu Jul 14, 2005 10:27 am
- Location: Melbourne, Australia
- Contact:
You can wrap your Java program as a custom wrapped stage, just like you would any other command you would execute from the shell. Just make the wrapped command something like:
If your java program writes to STDOUT you can connect this to a sequential file stage. See Custom Stages in the Parallel Job Developers Guide.
HTH,
J.
Code: Select all
java myProg parameters
HTH,
J.
<b>John McKeever</b>
Data Migrators
<b><a href="https://www.mettleci.com">MettleCI</a> - DevOps for DataStage</b>
<a href="http://www.datamigrators.com/"><img src="https://www.datamigrators.com/assets/im ... l.png"></a>
Data Migrators
<b><a href="https://www.mettleci.com">MettleCI</a> - DevOps for DataStage</b>
<a href="http://www.datamigrators.com/"><img src="https://www.datamigrators.com/assets/im ... l.png"></a>
Re: Calling a Java Program from DataStage
Yes - if you purchase the JAVA Pack.IFMTCS wrote:Is there any Stage in DS to call a java program
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers