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 ?
After routine results
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Hi, I noticed this in the ExecDOS script: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.
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
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.
Note that you can call these arguments anything you like.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers