IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

To find no of lines in each member


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
agent47

New User


Joined: 13 Sep 2007
Posts: 2
Location: india

PostPosted: Sun Feb 17, 2008 3:52 pm
Reply with quote

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

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Sun Feb 17, 2008 4:54 pm
Reply with quote

Why not trying the LMMSTATS service?

O.
Back to top
View user's profile Send private message
agent47

New User


Joined: 13 Sep 2007
Posts: 2
Location: india

PostPosted: Sun Feb 17, 2008 5:46 pm
Reply with quote

Sorry i didnt get thet point about LMMSTATS.Can you please explain
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Sun Feb 17, 2008 6:41 pm
Reply with quote

Why can't you search for the term LMMSTATS?

O.
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Sun Feb 17, 2008 11:41 pm
Reply with quote

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sun Feb 17, 2008 11:47 pm
Reply with quote

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

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Mon Feb 18, 2008 3:16 am
Reply with quote

in that case you could edit the members and get the ZLAST variable
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Feb 18, 2008 11:37 am
Reply with quote

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

New User


Joined: 28 Feb 2008
Posts: 2
Location: Citrus Heights, California

PostPosted: Thu Feb 28, 2008 8:16 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Searching for a member but don't know... TSO/ISPF 6
No new posts Looking For a PDS Member Without Open... PL/I & Assembler 10
Search our Forums:

Back to Top