After routine results

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
snassimr
Premium Member
Premium Member
Posts: 281
Joined: Tue May 17, 2005 5:27 am

After routine results

Post 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 ?
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post 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.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Ah... but it will log the fact that the after job routine has been executed and the syntax used to do so.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
meorz
Participant
Posts: 8
Joined: Thu Jul 28, 2005 6:00 pm

Post 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
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply