Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Way to get total number of lines of code

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
GaganGarg

Active User


Joined: 31 Mar 2010
Posts: 134
Location: India

PostPosted: Wed Apr 07, 2010 7:30 pm    Post subject: Way to get total number of lines of code
Reply with quote

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
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Wed Apr 07, 2010 7:35 pm    Post subject:
Reply with quote

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
View user's profile Send private message
GaganGarg

Active User


Joined: 31 Mar 2010
Posts: 134
Location: India

PostPosted: Wed Apr 07, 2010 7:42 pm    Post subject: Reply to: Way to get total number of lines of code
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Wed Apr 07, 2010 7:46 pm    Post subject: Reply to: Way to get total number of lines of code
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Speed-up/reduce CPU use of code prino PL/I & Assembler 0 Tue Sep 26, 2017 12:05 am
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts Profile changed to NUMBER ON STD (fro... Martylin TSO/ISPF 1 Thu Aug 03, 2017 9:14 am
No new posts I want to retire TRX and use only Rex... Abhinav Sharma CLIST & REXX 6 Sat Jul 29, 2017 2:53 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us