DSSEtLimit function

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

DSSEtLimit function

Post by snassimr »

Hi !

I need to run DSSetJobLimit in befor-job subroutine
but the job doesnt stop after 4warnings

Why ?
$INCLUDE DSINCLUDE JOBCONTROL.H



ErrCode = DSSetJobLimit (DSJ.ME, DSJ.LIMITWARN, 4)
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Because it's too late then. It must be done as part of the process that runs the job, not by the job itself.
-craig

"You can never have too many knives" -- Logan Nine Fingers
snassimr
Premium Member
Premium Member
Posts: 281
Joined: Tue May 17, 2005 5:27 am

Post by snassimr »

So How I can put the command Into job control of Job Sequence ?

Any way to do it without coding the job control mannually ?
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

A job cannot control itself in any way. Job Sequencer logic is not available for changing. You could cut and paste it into a Batch job, but then you lose the graphical maintenance.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
snassimr
Premium Member
Premium Member
Posts: 281
Joined: Tue May 17, 2005 5:27 am

Post by snassimr »

what happend when I set the limit on limits tab during running the job ?
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

snassimr wrote:what happend when I set the limit on limits tab during running the job ?
That works, but from an un-attended execution you should really consider custom job control.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

snassimr wrote:what happend when I set the limit on limits tab during running the job ?
DSSetJobLimit (DSJ.ME, DSJ.LIMITWARN, 4) 8)

But that's not during running the job, that's while making the request to run the job - that is, before the job is running.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply