Donna,
Create a data area in your library list , lets call it RCDCOUNT
CRTDTAARA DTAARA(RCDCOUNT) TYPE(*CHAR) LEN(100)

now run this to place the record count into the data area:
qsh cmd('wc -l file.txt | datarea -w rcdcount')

your CL program can retrieve the record count and use it.

Regards,
Shalom Carmel
-----------------------
www.hackingiseries.com


date: Mon, 30 Oct 2006 09:30:40 -0800 (PST)
from: donna lester <donna_lester_ny@xxxxxxxxx>
subject: Re: IFS file record count

Im creating an IFS File and I have to send the record count in my email to my customer. I wont be able to use RTVMBRD to get the record count since it is IFS File. Otherwise do I have to change that IFS file into PF(CPYFRMSTMF) and then record count by using RTVMBRD?

 Donna.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.