Page 1 of 1

VB script needed for retrieving logs

Posted: Thu Oct 20, 2011 5:03 am
by manoj333
Hi Everyone,
I was wondering is there any possibility to automate the manual way of checking logs in Datastage Director. Hence Im now involved in finding out a way.


Wat im trying to do is... To develop some script (either Java or VB) which asks my job name so that it automatically logs in DS director and retrieves the status of Jobs in either XML or notepad etc,..

Please help me guys..

Posted: Thu Oct 20, 2011 7:11 am
by chulett
Welcome.

Searching will reveal a ton of questions and information on this topic already here. However... why Java or VB? The API to retrieve any information of that nature is dsjob at the command line and its use has been discussed here many, many times. A 'simple' approach would be to leverage dsjob and its options via batch (or VB or Java) to gather that information. Sounds like you may just need to use -jobstatus.

For a more formal automated approach, search here for discussions of 'ETLStats'.