Page 1 of 1

Determing EOF of sequential file

Posted: Mon Sep 17, 2007 8:32 am
by tiozzo
Hi All, I'm reading a sequential file into a transformer stage and want to to special processing on the last row. Is there an easy way to determine the last row in the file? I was thinking of just marking the last row with a flag before reading. Is there an easier way?

Re: Determing EOF of sequential file

Posted: Mon Sep 17, 2007 8:34 am
by sud
Cannot make out your exact equirements, however you can try the tail stage.

Posted: Wed Sep 19, 2007 4:46 am
by siddesai
As sud said..use Tail stage and set the number of lines to 1 this will give you the last row in your file. Now, you can compare your key field to the key field of this tail -1 record and then process accordingly.

Hope that helps