Infinite loop implementaion in Server Job

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
ArijitS
Participant
Posts: 24
Joined: Sat Jun 02, 2007 8:58 am
Location: Kolkata

Infinite loop implementaion in Server Job

Post by ArijitS »

I want to design a job with infinite loop.With out any external scripting is it possible from start loop and end loop.Bcoz i see from start loop it wants start counter,increment counter,end counter.... can we make the end counter infinite(not any big digit).... plz help me to sort it out
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Re: Infinite loop implementaion in Server Job

Post by chulett »

ArijitS wrote:I want to design a job with infinite loop.
No, you don't. Why don't we start by you explaining the problem you are trying to solve instead?
-craig

"You can never have too many knives" -- Logan Nine Fingers
sunil_acc
Participant
Posts: 28
Joined: Thu Oct 20, 2005 5:49 am

agree with chulett

Post by sunil_acc »

Why do we want to go in a black hole and that too on ETL?

still i would say try start loop from 1 and make it incremental loop and end it on 0 so that will never meet condition and it will be an infinite loop. But mind it, it will screw resources.................... :evil:
JoshGeorge
Participant
Posts: 612
Joined: Thu May 03, 2007 4:59 am
Location: Melbourne

Re: agree with chulett

Post by JoshGeorge »

Black hole produces bizarre effects on time and space.
:shock:
sunil_acc wrote:Why do we want to go in a black hole and that too on ETL?
Joshy George
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

You cannot make a circular job design. There has to be a starting stage and an ending stage. You can start with a Transformer stage, create a stage variable and have an output link write to a passive stage. You will have an infinite number of output rows written unless you put a constraint to stop after N rows or some other condition.
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:

Re: Infinite loop implementaion in Server Job

Post by ray.wurlod »

ArijitS wrote:I want to design a job with infinite loop.
Why? Are you being paid by the hour?

This is a silly requirement as stated. Please post your real requirement, as Craig asked you to do.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ArijitS
Participant
Posts: 24
Joined: Sat Jun 02, 2007 8:58 am
Location: Kolkata

Re: Infinite loop implementaion in Server Job

Post by ArijitS »

The requirement is simple :
There are two jobs JOB1,JOB2.JOB2 starts after completion of JOB1.Now my requrement is to run the loop of
JOB1--->JOB2 infinetly.Give me the solution.I don't want to run it from a batch/shell.....
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Created a counted loop in your sequence that goes from 1 to a couple of million and let that loop with a command stage of sleep {n-seconds} in the loop so that you don't use too much CPU just looping if there is nothing for the 2 jobs to do.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

"Give me the solution"?!!!

Sir, that's what I do for a living. Only it's not "give" - it's "sell".

This site is totally supported by volunteers. You would do well to moderate your tone.
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