For counting the number of rows in a sequential file, we should use the @INROWNUM variable.
[blog_you_may_like]