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...


Can someone tell me the behaviour of next_in_sequence() and innovation_number() in a multifile.
Suppose I have records 1,1,1,2,2,3,4,4 in a 4ways mfs file. Data in each partition is:
0th : 1,1,1
1st : 2,2
3rd : 3
4th : 4,4

What will be the sequence of these records if I pass next_in_sequence() and innovation_number() ?

Also how can I extract 3rd record from each of the 4 partitions of a 4way multifile through AbInitio? In unix we can use m_dump



Can someone tell me the behaviour of next_in_sequence() and innovation_number() in a multifile. Sup..

Answer / ram

AbInitio, next_in_sequence() function returns the next record in the sequence within a partition, while innovation_number() function returns the innovation number of the record, indicating its position in the sequence.Given the data you provided and assuming each record is numbered sequentially within each partition, the sequence of records when applying next_in_sequence() and innovation_number() would be:next_in_sequence(): 1, 1, 1, 2, 2, 3, 4, 4innovation_number(): 1, 2, 3, 1, 2, 1, 1, 2To extract the 3rd record from each of the 4 partitions of a 4-way multifile in AbInitio, you can use a combination of next_in_sequence() and conditional statements. Here's a basic outline of how you can achieve this:read_from_multifile(in = input_multifile) ->
begin
out :: output_table;
while(not end_of_file(input_multifile))
begin
record := next_in_sequence(input_multifile);
if innovation_number(input_multifile) = 3 then
out <- record;
end;
end;This script reads from the multifile and checks if the current record's innovation number is 3. If it is, the record is outputted to the output table. Repeat this process for all four partitions of the multifile.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ab Initio Interview Questions

i need help from u. i want to learn abinitio. please provide pdfs or material or books.

56 Answers   iGate, TCS,


What is data encoding?

0 Answers  


What is the difference between sandbox and EME, can we perform checkin and checkout through sandbox?

5 Answers   JPMorgan Chase, Syntel,


State the working process of decimal_strip function?

0 Answers  


What are the Types of parallelism in detail?

0 Answers  


Is it possible to create a parameter in the component?

1 Answers  


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

0 Answers  


What is the function that transfers a string into a decimal?

0 Answers  


What is the function you would use to transfer a string into a decimal?

0 Answers  


What is the difference between rollup and scan?

0 Answers  


What is the significance of ‘mp run’ command ?

1 Answers   TCL,


Describe the evaluation of parameters order in ab initio?

0 Answers  


Categories