Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Hi friends,
I have 100 records in my input file, if i run first,the
first 10 records are stored into the output and if i run
second time next 10 records stored into the output file like
that

please let me know the answer

Thanks,
krishna

Answer Posted / ruknamw@yahoo.com

Approach 1: Least Number of components. (only 3)
-----------

1. Declare a Parameter $COUNT to get the count of the Output file
2. Use that parameter in a FILTER BY EXPRESSION component after the input file. Use the below filter.

((next_in_sequence() + 1)/ 2 ) > $COUNT
and (next_in_sequence()/2 ) < (11 + $COUNT)

NOTE: The complicated logic above is used because of two next_in_sequence() functions which would be incremented by 2 for each record.

Alternative approach is to use a scan and local variables to create the sequence manually and use the appropriate filter. OR use two FILTER BY EXPRESSIONS, with the below filters:
next_in_sequence() > $COUNT
next_in_sequence() < 11

Approach 2:
-----------
1. Join the Output and Input file on all keys (or primary key if applicable)
2. Use a Filer component after the Unused port for the Input file. Filter should be next_in_sequence() < 11

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the features of ab initio?

1058


how to insert/update a csv file by comparing it with another csv file?

2501


How to find the project(pub,priv,common,client) in between public, Private,common?Any identification?

2058


Mention some file extensions which are used in abinitio?

1065


How to convert a single column values 1 2 3 4 to single row of 4 columns ? And vice-versa

1024


How can you export a component’s internal parameters ?

2336


Explain what does dependency analysis mean in abinitio?

1066


What parallelisms does Abinitio support?

1151


What is rollup component?

1174


How you can run a graph infinitely in ab initio?

1468


What you can store, manage and reuse centrally in ab initio enterprise meta>environment (eme)?

1183


How can you import XML repositories exported from different tools like ODI

3495


What are differences between different versions of co-op?

1144


How to execute the graph from start to end stages? Tell me and how to run graph in non-Abinitio system?

1191


What is a deadlock and how it occurs?

1110