regarding DSRUNJOB JOBCONTROL SUBROUTINE

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

vijaykumar
Participant
Posts: 228
Joined: Tue Oct 03, 2006 7:08 pm

Post by vijaykumar »

hi gurus,
THANKS VERY MUCH.
where should i use this utility RUNJOB(jobname).
my design is ODBC--->TRANSFORMER--->ODBC.
plz help me

cheers;
vijay
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

vijaykumar wrote: where should i use this utility RUNJOB(jobname).
my design is ODBC--->TRANSFORMER--->ODBC.
Vijay buddy, why do you want to use this in your job? Reason?
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
us1aslam1us
Charter Member
Charter Member
Posts: 822
Joined: Sat Sep 17, 2005 5:25 pm
Location: USA

Post by us1aslam1us »

Is this the same Job you posted in the other thread or a different one.

Sam
vijaykumar
Participant
Posts: 228
Joined: Tue Oct 03, 2006 7:08 pm

Post by vijaykumar »

hi gurus,
thanks very much.
i just wanted to analyze how that function works.
i didn't make use of that in any one of my jobs wanted to see how this function works.
i know its completely wrong to analyze in such a manner, i thought when u dig deep, u can make use of these functions whereever necessary.
if anyone helps me out with the syntax and where this utility is used i really appreciate.i want to analyze how this function works out.
once again thanks.

cheers;
vijay
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Well thats good but at times, you just cross the bridge when you come to it.
DSRunJob() is a function and used in jobcontrol when you have to control the complete process. UtilityRunJob() is a utility provided by DataStage which runs the job and can be invoked inside the transformer. But it will be invoked for each and every row. There have been certain instances when you can use that. Search this website for the keyword 'UtilityRunJob'.
For syntax, go to the routine in your repository and read the help. It tells you everything.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

DSRunJob Function

Code: Select all

Syntax: ErrCode = DSRunJob (JobHandle, RunMode)
For more refer to DS Basic Guide page 280.
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Source code is provided for all SDK routines. Examine the source code yourself.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vijaykumar
Participant
Posts: 228
Joined: Tue Oct 03, 2006 7:08 pm

Post by vijaykumar »

hi,
THANKS VERY MUCH.
cheers;
vijay
Post Reply