Job Status in a file

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

Post Reply
ds_is_fun
Premium Member
Premium Member
Posts: 194
Joined: Fri Jan 07, 2005 12:00 pm

Job Status in a file

Post by ds_is_fun »

How to capture job run status in a file in PX?
I want to know if it run sucessfully/aborted ?
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

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
Premium Member
Posts: 194
Joined: Fri Jan 07, 2005 12:00 pm

Post by ds_is_fun »

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 »

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
Premium Member
Posts: 194
Joined: Fri Jan 07, 2005 12:00 pm

Post by ds_is_fun »

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

Post by chulett »

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 »

You need to create your own after-job subroutine; and then use a function such as DSGetJobInfo() from inside that subroutine.
Post Reply