Apr 7, 2003 #1 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?
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?
Apr 7, 2003 #2 kevinf2349 Technical User Sep 12, 2002 367 US 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. Upvote 0 Downvote
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.