How to find out number of records present in flatfile

hi,

How to find out number of records present in flatfile.?

I tried changing the check fields propertyin the properties panel to true. By doing this one more field called segmentCount is added in DT file.

i’m trying to map segmentCount to new variable. But value is not copied.

Can anyone help me out?

Thanks & Regards,
Monica

When you call pub.flatFile:convertToValues set flags/addRecordCount to true. On each record a field named @record–count will be present. The value of that field in the last record will be the record count.

hi,

Thank u…got the o/p.