Page 1 of 1

count the lines

PostPosted: Thu Aug 02, 2007 1:04 pm
by coder
Hii...

I want to find the lines of codes in my pgms.Say I have few programs residing as members of a PDS. I wan to count the no of lines for selected programs which starts with a name 'RJ'.

Plz help me with a JCL :mrgreen:

I posted the second one too... :D

Re: count the lines

PostPosted: Thu Aug 02, 2007 1:22 pm
by William Thompson
Counting with sort is fairly simple.
Concatenating members using a wildcard, I don't know.......

Re: count the lines

PostPosted: Fri Aug 03, 2007 4:59 am
by dick scherrer
Hello,

Say I have few programs residing as members


Let us key in on the word few.

Counting with sort is fairly simple.


If you created a //SORTIN DD and named one member in that and each concatenated DD, you could run the batch of them into the sort and count the lines.

If you have more than a few, you could create your JCL and then list the members using the mask in tso/ispf and then copy/paste the member names into your jcl. Given that all of the DD statements should line up, pasting would be fairly painless. Of course, this requires that your terminal emulator will do the "block" copy/paste.