Generate Sequence Number in a Multifile.

How to generate sequence number in a multifile using next_in_sequence().

Showing Answers 1 - 12 of 12 Answers

gouse

  • Jul 5th, 2015
 

(next_in_sequence-1)*no_of_partitions+this_partition

  Was this answer useful?  Yes

Nikhil

  • Jul 18th, 2015
 

Gouse, I believe it should be:
(next_in_sequence-1)*no_of_partitions+this_partition +1

srinivasareddy

  • Jul 21st, 2015
 

hi
I think this will be help you if the mfs is 4-way
if (this_partition() == 0)((next_in_sequence()-1))+this_partition()+1
else if (this_partition() == 1) ((next_in_sequence()-1))+this_partition()
else if (this_partition() == 2) ((next_in_sequence()-1))+this_partition()-1
else if (this_partition() ==3) ((next_in_sequence()-1))+this_partition()-2
is their any wrong please let me know

  Was this answer useful?  Yes

Sachin

  • Feb 2nd, 2016
 

Next_in_sequence()*(this_partition()+1)

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions