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

What is a partition and what are the different types of partition components in abinitio?

1 Answers  


What are the different types of parallelism used in abinitio?

1 Answers  


What parallelisms does Abinitio support?

1 Answers  


Mention what is a partition and what are the different types of partition components in abinitio?

1 Answers  


Hi friends if u don't mind i want one question What abt READ MULTIFILE COMPONENT? PLZ GIVE BRIEFLY?

2 Answers  


What are the features of ab initio?

1 Answers  


Layout - L1*, L1 - What is the difference ? How to use in abinitio graph?

1 Answers   IBM, TCL,


What is the importance of eme in abinitio?

1 Answers  


Difference between informatica vs ab initio?

1 Answers  


What do you mean by a transaction file and how it is different from that of a sort file?

1 Answers  


from a graph how to select only second record always in scan?

3 Answers   IBM,


Explain how abinitio eme is segregated?

1 Answers  


Categories