count the lines



Support for NetApp SyncSort for z/OS, Visual SyncSort, SYNCINIT, SYNCLIST and SYNCTOOL

count the lines

Postby coder » Thu Aug 02, 2007 1:04 pm

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
coder
 
Posts: 4
Joined: Tue Jul 31, 2007 12:01 am
Has thanked: 0 time
Been thanked: 0 time

Re: count the lines

Postby William Thompson » Thu Aug 02, 2007 1:22 pm

Counting with sort is fairly simple.
Concatenating members using a wildcard, I don't know.......
William Thompson
 
Posts: 81
Joined: Sat Jun 09, 2007 4:24 am
Location: Tucson AZ
Has thanked: 0 time
Been thanked: 1 time

Re: count the lines

Postby dick scherrer » Fri Aug 03, 2007 4:59 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to Syncsort/Synctool

 


  • Related topics
    Replies
    Views
    Last post