Gufranul Haque wrote: [snip] > I will try to explain the problem I am facing in detail: > > File to be processed (Input File) > > 10111 2.00 2.00 2.00 2.00 > 10111 2.00 2.00 2.00 2.00 > > Restriction First field to remain same. > > Parameter File > 1,0.3,0.5,1 > Each filed in the parameter file corresponds to a field in the input file. > > Logic - > > >From 2nd field to eof in input file > > If value in parameter file < 1 > > split that filed into two fields > > i.e for the value in the 3rd field (2.00), corresponding parameter value is > 0.3, so it should be splitted into two fields (0.60 and 1.40)
Huh? Where did this come from? After 20 minutes or so of contemplation, it occured to me that one of the two fields [0.60] that you split 2.00 into, is equivalent to the parameter for that field [0.2] time the quantity listed. Is this the connection? Where to you want to put the "extra" field [1.40]? It is really not at all clear what you wish to do here, or what the relationship is between the different elements of your data files. Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]