View previous topic :: View next topic
|
Author |
Message |
GaganGarg
Active User
Joined: 31 Mar 2010 Posts: 134 Location: India
|
|
|
|
Is there any way to count total number of code lines present in a directory(i.e. PDS)? Please let me know if there is some function to do so.
Thanks |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
The directory itself won't have any lines of code -- it is merely pointers to members of the PDS. You could print a member listing of the PDS via ISPF and that'll tell you how many records are in each member of the PDS and the total records.
Whether or not you consider the total number of records to be the number of lines of code, however, is a fish of a different color. Especially if there are multiple languages in your PDS. |
|
Back to top |
|
|
GaganGarg
Active User
Joined: 31 Mar 2010 Posts: 134 Location: India
|
|
|
|
Yeah i agree that a PDS may contain different languages' code. Here i want to take one record as one line of code. Using ISPF, i could not get how to list the total number of records present in the members of the PDS. Please help me to achieve this na |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
reset/create the ispf statistics will give what You want,
but it will make grow by 3.5 times the number of directory blocks needed |
|
Back to top |
|
|
|