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

Answers were Sorted based on User's Feedback



Hi friends, I have 100 records in my input file, if i run first,the first 10 records are stored i..

Answer / pujan patra

Use partion by round robin and block size will be 10 .It
will give the desired output

Is This Answer Correct ?    19 Yes 14 No

Hi friends, I have 100 records in my input file, if i run first,the first 10 records are stored i..

Answer / jitender k

You can use I/F-->Reformat-->Rep-->Rollup-->lookup file
--> output_file
In reformat need to add next_in_sequence() >= lookup_match(lookup_file,count) and next_in_sequence() < lookup_match(lookup_file,count)+10

And in Rollup, we will have key as NULL and count function which will count the number of record process so far which stored in a separate file,so every time when your graphs runs it will pick from the next number of records.

Is This Answer Correct ?    2 Yes 1 No

Hi friends, I have 100 records in my input file, if i run first,the first 10 records are stored i..

Answer / nisanth

what is the key we need to give in lookup ?

Is This Answer Correct ?    0 Yes 0 No

Hi friends, I have 100 records in my input file, if i run first,the first 10 records are stored i..

Answer / jerry

Hi,

You can create a graph with 2 parameters,say count1 and count2.
Now u can use a 'filter by' transform and give the filter
condition as
"next_in_sequence > count1 and next_in_sequence < count2".
U can give the value for parameters in the pset as 0,10
respectively.

this is just one way. :)

Is This Answer Correct ?    6 Yes 8 No

Hi friends, I have 100 records in my input file, if i run first,the first 10 records are stored i..

Answer / 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

More Ab Initio Interview Questions

how will i can implemate Insert,Update,delete in abinitio? how will u view MFS in unix?what is diff/btween conditional dml& conditional component?

3 Answers   IBM, Syntel,


If you check in one file twice in EME, one with a tag and second without a tag - Will the version number change ? How to use in abinitio graph?

2 Answers   IBM, TCL,


I have a DML in my local system the location is E:/u/home/khaleel/dml how to convert this path to $DML?

1 Answers  


What is rollup component?

0 Answers  


How to load the data from an excel sheet to input file in a graph?

2 Answers   IBM,


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

0 Answers  


what is hash file in abinitio? how will it read in abinitio? in hash file the data files r combine (file1.dat,file2.dat,file3.dat......etc) how will it divide?

2 Answers   HP,


) How can you count the total no .of records in the specified partition in the Multifile?

5 Answers  


What do you understand by overflow errors?

0 Answers  


Is it possible to create a parameter in the component?

1 Answers  


What is data mapping and data modelling?

0 Answers  


If I delete 1 partition (in 8 partition multifile) and run the graph. Will the graph run successfully?, If not what error I'm going to get.

2 Answers  


Categories