Page 1 of 1

After Job Subroutine is not getting invoked

Posted: Mon Jun 24, 2013 2:21 am
by tanu2706
Hi

I have created a After job subroutine, which was working fine in Datastage 8.7 version. But when i tried to invoke the same routine in Datastage 9.1 version, its not getting invoked.

Can someone please suggest the possible reason behind it?

Thanks
Tanu

Posted: Mon Jun 24, 2013 2:38 am
by prasson_ibm
Hi,
Can you please give us more information like any error message you are getting and what is done by subroutine.

Posted: Mon Jun 24, 2013 2:39 am
by ArndW
What is your setting for the job "only invoke after job subroutine on successful job completion" and what it the job status when run and when the routine is not invoked?

Posted: Mon Jun 24, 2013 2:59 am
by tanu2706
wanted to know, do we need to enable some settings using Administrator for invoking the Subroutines?

Posted: Mon Jun 24, 2013 3:39 am
by tanu2706
ArndW wrote:What is your setting for the job "only invoke after job subroutine on successful job completion" and what it the job status when run and when the routine is not invoked?
Sorry, my last message got wiped out. So i tried with both the option by selecting and unselecting "only invoke after job subroutine on successful job completion",but none was able to invoke the routine. Job finished with success status only but then also its not able to invoke.

Posted: Mon Jun 24, 2013 5:32 am
by ArndW
if you put a PRINT "ENTERING ROUTINE" on the first line of your routine, do you get a log entry at runtime?

-Alternatively you could CALL DSLogWarn("ENTERING ROUTINE","MyRoutine")

Posted: Mon Jun 24, 2013 7:48 am
by tanu2706
yes, got that entry in the log. and script worked.
Thanks

Posted: Mon Jun 24, 2013 9:51 am
by ArndW
In that case you could mark this as resolved - am I correct in assuming that you were entering the routine, just not doing what you expected in it?