Page 1 of 1

After routine results

Posted: Mon Aug 08, 2005 8:49 am
by snassimr
Hi !

I want to see the results of running After job routine and the Job I run with Job Sequence.

It is no any messages in log about the after jon routine running

Where I can see it ?

Posted: Mon Aug 08, 2005 9:56 am
by Sainath.Srinivasan
If you want to see the log, you can do so from Director or log files.

Can you clarify what you intend to gather.

Posted: Mon Aug 08, 2005 6:41 pm
by ray.wurlod
An after-job subroutine will not log any events unless you ask it to, by invoking DSLogInfo() or DSLogWarn(). Examine the supplied source code for ExecDOS to see what I mean.

Posted: Mon Aug 08, 2005 8:24 pm
by chulett
Ah... but it will log the fact that the after job routine has been executed and the syntax used to do so.

Posted: Mon Aug 08, 2005 9:08 pm
by ray.wurlod
True... unless... did the job fail to complete successfully and the "run after-job subroutine only if job completes successfully" check box was checked?

Posted: Sat Aug 13, 2005 3:14 am
by meorz
ray.wurlod wrote:An after-job subroutine will not log any events unless you ask it to, by invoking DSLogInfo() or DSLogWarn(). Examine the supplied source code for ExecDOS to see what I mean.
Hi, I noticed this in the ExecDOS script:
Call DSExecute("DOS", InputArg, Output, SystemReturnCode)

How do get the "Output" and "SystemReturnCode"?

I execute C# command line program in the Job.

Thanks in advance

Posted: Sat Aug 13, 2005 7:00 am
by chulett
Those are variables that the DSExecute call will automatically create and populate. After the call, 'Output' will have captured whatever the command that was run echoed to the screen and 'SystemReturnCode' will have the exit status of the command. From what I recall, multi-line 'Output' from the command will come back in a dynamic array.

Note that you can call these arguments anything you like.