Hi,
We have a requiremen where in we want to trigger datastage job based on the input selected from screen.
The screen would be designed in java.
I want to know if there are some application already using this kind of thing and also how should we approcah this.
Regards,
Gaurav
Datastage job trigger using java
Moderators: chulett, rschirm, roy
AFAIK there is no such option to select the value from a screen and pass it on to a datastage job.
If your Java application could return the same output as a return code or redirect it to a file, it can be picked up by a datastage job.
If your Java application could return the same output as a return code or redirect it to a file, it can be picked up by a datastage job.
Last edited by narasimha on Wed Sep 19, 2007 5:29 pm, edited 1 time in total.
Narasimha Kade
Finding answers is simple, all you need to do is come up with the correct questions.
Finding answers is simple, all you need to do is come up with the correct questions.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
The way I have done it is that since the DataStage Job Control APIs are already exposed as a Web Service, my JSF program will call this service and execute the job selected from the job list returned by the Web Service. This way you don't have to worry about which job needs to be exposed as a Web Service especially like my application which has almost 600 jobs.
I should have also answered the original question..... as Ray notes, using RTI or WISD, you could use an EJB or Web Services call from your java code to invoke the DataStage job, as I note in the prior message. That's the most elegant method and perhaps the easiest, since you can avoid some of the complexities of DS Job Control.
Alternatively, if you are good with JNI, you could call C from your java code, and then inside that C code use the standard Job Control C API that is well documented.
..or...find the best way to exit to the command line and simply kick off a shell with the job control commands in their shell implementation.
Ernie
Alternatively, if you are good with JNI, you could call C from your java code, and then inside that C code use the standard Job Control C API that is well documented.
..or...find the best way to exit to the command line and simply kick off a shell with the job control commands in their shell implementation.
Ernie
Hello Istsaur,lstsaur wrote:The way I have done it is that since the DataStage Job Control APIs are already exposed as a Web Service, my JSF program will call this service and execute the job selected from the job list returned by the Web Service. This way you don't have to worry about which job needs to be exposed as a Web Service especially like my application which has almost 600 jobs.
This would be perfect for our environment. I'm battling to find out how we can expose all of the jobs and projects to a web service. Please can you give me the detail steps of how you configured your DS server to expose the DS API to web Services?
I've been searching DSXchange and the help files but I'm just coming up empty.
Please help.
Regards,
Gary
~The simpliest solutions are always the best~
~Trick is to understand the complexity to implement simplicity~
~Trick is to understand the complexity to implement simplicity~