Page 1 of 1

Loop a source file specified times and loading in target

Posted: Wed Dec 21, 2005 5:12 am
by antojj
I have a requirement. I need to use a source file (3 records). Load this data to a target file multiple times in a Loop.

Input file : 3 records
Loop : 10
Output file : 30 records

How can i go about this?
Is there any stage been used to handle this type of transformations?

I could remember in another tool, that there is a counter which increments the loop and you will be prompted with the output data.

But, not sure about datastage. If datastage has the features specified , let me know.

Thanks in advance,

Re: Loop a source file specified times and loading in target

Posted: Wed Dec 21, 2005 5:40 am
by khanparwaz
Hi
Their a start loop activity & end Loop activity in datastage
Make use of that in sequence & put your job which loads the file in between that loop

In the property of start loop specify loop type as numeric

& in loop definition specify in from 1 step 1 to 10.


this will run ur file load job 10 times.