dear all,

i have a sticky problem. i have some files where, among others, an unknown number of lines starts with "Jxyz" followed with a line starting with "end"; the Jxyz lines are all followed and contain text numbers and commas, randoomly ordered.

I need to perform a certain action on the Jxyz lines and stop the "cycle" when the "end" line is reached.

There are other lines before and after this block of lines, so EOF if not an option.

My problem is: how to "recognize" the "end" line so that I can stop the cycle and go on with the program?

Any help would be marvellous.

Cheers,

GJ