Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.
Moderators: chulett , rschirm , roy
ds_is_fun
Premium Member
Posts: 194 Joined: Fri Jan 07, 2005 12:00 pm
Post
by ds_is_fun » Tue Oct 02, 2007 1:14 pm
How to capture job run status in a file in PX?
I want to know if it run sucessfully/aborted ?
DSguru2B
Charter Member
Posts: 6854 Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX
Post
by DSguru2B » Tue Oct 02, 2007 1:23 pm
use the dsjob command to get the report of a particular job and then parse out the job status.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ds_is_fun
Premium Member
Posts: 194 Joined: Fri Jan 07, 2005 12:00 pm
Post
by ds_is_fun » Tue Oct 02, 2007 4:20 pm
can we not have something as in server DSGetJobInfo function in PX?
Is running through a command prompt only option to know about status of a job run in PX?
ray.wurlod
Participant
Posts: 54607 Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:
Post
by ray.wurlod » Tue Oct 02, 2007 4:49 pm
You can use the DataStage API functions (such as DSGetJobInfo) in before/after job subroutines in parallel jobs.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ds_is_fun
Premium Member
Posts: 194 Joined: Fri Jan 07, 2005 12:00 pm
Post
by ds_is_fun » Tue Oct 02, 2007 5:12 pm
Im unable to use in after job subroutine from "Job properties". It has a pre-defined list of functions and wouldn't let me add new function.
chulett
Charter Member
Posts: 43085 Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO
Post
by chulett » Tue Oct 02, 2007 5:39 pm
After you create a new 'Before/After' routine it will show up there.
-craig
"You can never have too many knives" -- Logan Nine Fingers
ArndW
Participant
Posts: 16318 Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:
Post
by ArndW » Tue Oct 02, 2007 5:39 pm
You need to create your own after-job subroutine; and then use a function such as DSGetJobInfo() from inside that subroutine.