Can we find the total no. of lines in all members of a PDS?
Can we find the total no. of lines in all members of a PDS?
Hi,
For one of the requirements, I'd need to find the total Lines of Code in a PDS. The PDS has got 1500 members. Is there any way to find the total number of lines using some tool? Can Sort be an optio for this too?
For one of the requirements, I'd need to find the total Lines of Code in a PDS. The PDS has got 1500 members. Is there any way to find the total number of lines using some tool? Can Sort be an optio for this too?
-
- Global Moderator
- Posts: 838
- Joined: Wed Sep 11, 2013 3:57 pm
Re: Can we find the total no. of lines in all members of a P
with a bit of lateral thinking ... YES
just run a SRCHFOR with a string that YOU KNOW does not exist
the summary will tell how many members searched and how many lines searched
just run a SRCHFOR with a string that YOU KNOW does not exist
the summary will tell how many members searched and how many lines searched
Code: Select all
********************************* Top of Data **********************************
ISRSUPC - MVS/PDF FILE/LINE/WORD/BYTE/SFOR COMPARE UTILITY- ISPF FOR z/OS
SEARCH-FOR SUMMARY SECTION SRCH DSN: ENRICO.ISPF.EXEC
LINES-FOUND LINES-PROC MEMBERS-W/LNS MEMBERS-WO/LNS COMPARE-COLS LONGEST-LI
0 3124 0 34 1:80 80
PROCESS OPTIONS USED: ANYC
THE FOLLOWING PROCESS STATEMENTS (USING COLUMNS 1:72) WERE PROCESSED:
SRCHFOR ' AM SURE THAT IT IS NOT THERE'
******************************** Bottom of Data ********************************
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
-
- Global Moderator
- Posts: 588
- Joined: Wed Nov 20, 2013 11:53 am
- Location: Mars
Re: Can we find the total no. of lines in all members of a P
Also what you could do is create a REXX script to display the number of lines MEMBER wise
zprogrammer
- Anuj Dhawan
- Founder
- Posts: 2816
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: Can we find the total no. of lines in all members of a P
Unless i missed the obvious: This should help -
ISPF option 3.4, bring up the PDS on a selection list, enter PX beside the PDS. This prints the member names and line counts along with total lines. In the command line type LIST. Choose option 3 (keep and continue with new).
A data set of name &PREFIX.SPFx.LIST should give you a detailed report on your PDS.
ISPF option 3.4, bring up the PDS on a selection list, enter PX beside the PDS. This prints the member names and line counts along with total lines. In the command line type LIST. Choose option 3 (keep and continue with new).
A data set of name &PREFIX.SPFx.LIST should give you a detailed report on your PDS.
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Re: Can we find the total no. of lines in all members of a P
Thanks but I am not very comfortable with REXX.Pandora-Box wrote:Also what you could do is create a REXX script to display the number of lines MEMBER wise
Re: Can we find the total no. of lines in all members of a P
Thanks enrico for the help but it tells the "total" lines searched but not the number of line for every member in the PDS. Or did I get it wrong?enrico-sorichetti wrote:with a bit of lateral thinking ... YES
just run a SRCHFOR with a string that YOU KNOW does not exist
the summary will tell how many members searched and how many lines searched
Code: Select all
********************************* Top of Data ********************************** ISRSUPC - MVS/PDF FILE/LINE/WORD/BYTE/SFOR COMPARE UTILITY- ISPF FOR z/OS SEARCH-FOR SUMMARY SECTION SRCH DSN: ENRICO.ISPF.EXEC LINES-FOUND LINES-PROC MEMBERS-W/LNS MEMBERS-WO/LNS COMPARE-COLS LONGEST-LI 0 3124 0 34 1:80 80 PROCESS OPTIONS USED: ANYC THE FOLLOWING PROCESS STATEMENTS (USING COLUMNS 1:72) WERE PROCESSED: SRCHFOR ' AM SURE THAT IT IS NOT THERE' ******************************** Bottom of Data ********************************
Re: Can we find the total no. of lines in all members of a P
Anuj Dhawan wrote:Unless i missed the obvious: This should help -
ISPF option 3.4, bring up the PDS on a selection list, enter PX beside the PDS. This prints the member names and line counts along with total lines. In the command line type LIST. Choose option 3 (keep and continue with new).
A data set of name &PREFIX.SPFx.LIST should give you a detailed report on your PDS.
Thanks for the help Anuj!
-
- Global Moderator
- Posts: 838
- Joined: Wed Sep 11, 2013 3:57 pm
Re: Can we find the total no. of lines in all members of a PDS?
my reply and the results shown satisfy fully the original request.I'd need to find the total Lines of Code in a PDS.
You asked the wrong question then... but it tells the "total" lines searched but not the number of line for every member in the PDS. Or did I get it wrong?
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
Re: Can we find the total no. of lines in all members of a PDS?
Sorry for the confusion enrico. Reading it again and yes, it indeed is wrong.
- prino
- Registered Member
- Posts: 68
- Joined: Sun Jun 01, 2014 4:15 am
- Location: Vilnius, Lithuania
- Contact:
Re: Can we find the total no. of lines in all members of a PDS?
And which utterly imbecile PHB has come up with this utterly useless requirement?Angel wrote:For one of the requirements, I'd need to find the total Lines of Code in a PDS.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute