Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying number of lines in a dataset

Status
Not open for further replies.

janegee

Programmer
Mar 16, 2003
4
US
What is the command I can put in a REX exit that would count the number of lines in a sequentail dataset? Or any dataset for that matter. Anyone know?
 
Well......I would check to see if your site has a user written program called 'COUNT' installed. If not then you could do it like this:

"ALLOC F(test) DA('your.dataset') SHR REUSE"
"EXECIO * DISKR TEST (STEM LINE. FINIS)"
say line.0
"FREE F(test)"

If you would like a copy of the assembler program that is the COUNT command...just pop me an email and I will send it to you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top