How Many Lines Read?

Archive of postings to DataStageUsers@Oliver.com. This forum intended only as a reference and cannot be posted to.

Moderators: chulett, rschirm

Locked
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

How Many Lines Read?

Post by admin »

LineCount = 0
Loop
ReadSeq ... Else Exit
LineCount += 1
Repeat

will be the most efficient.

The FileInfo() function has a key that returns the current line.
FileInfo(filevariable,FINFO$CURRENTLINE)

Constants for FileInfo() function key arguments are declared in the header file FILEINFO.H; add the declaration $INCLUDE UNIVERSE.INCLUDE FILEINFO.H in your code before using the FileInfo() function.

-----Original Message-----
From: Dirk Moolman [mailto:dirkm@reach.co.za]
Sent: Wednesday, 03 October 2001 17:27
To: ray.wurlod@informix.com
Subject: FW: job statistics


Quick question, I am reading a file using

Loop until EOF
Readseq .....
Repeat

Is there a similar function that will tell me the number of lines read from the file ?
Locked