View previous topic :: View next topic
|
Author |
Message |
agent47
New User
Joined: 13 Sep 2007 Posts: 2 Location: india
|
|
|
|
I have requirement to find the no of lines present in each members in a pds.
ie i have to get results as
member1- 5 records
member2-10 records
etc
Can any one help me. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Why not trying the LMMSTATS service?
O. |
|
Back to top |
|
|
agent47
New User
Joined: 13 Sep 2007 Posts: 2 Location: india
|
|
|
|
Sorry i didnt get thet point about LMMSTATS.Can you please explain |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Why can't you search for the term LMMSTATS?
O. |
|
Back to top |
|
|
acevedo
Active User
Joined: 11 May 2005 Posts: 344 Location: Spain
|
|
|
|
as ofer said...search in this forum for examples about how to use LM services...
ZLCNORC is the variable you're looking for |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
but beware, if ispf statistics are missing then You will get nothing,
and You will have to find an alternative way to do it |
|
Back to top |
|
|
acevedo
Active User
Joined: 11 May 2005 Posts: 344 Location: Spain
|
|
|
|
in that case you could edit the members and get the ZLAST variable |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
An alternative method is to use SUPERC and compare a PDS to itself (that is - provide the same PDS name in NEWDD and OLDDD). The listing includes the members list and line numbers of each.
SUPERC can be invoked in forground, in batch or programmatically from within REXX, CLIST, COBOL etc.
O. |
|
Back to top |
|
|
Microchip Warnings : 1 New User
Joined: 28 Feb 2008 Posts: 2 Location: Citrus Heights, California
|
|
|
|
You can use SORT, but it has to be on each individual member.
Use SORT FIELDS=COPY, and DUMMY the SORTOUT.
I have a REXX EXEC that will list every member of a PDS that I will be happy to share with you if you would like. That could automate this process a great deal.
Dave |
|
Back to top |
|
|
|