Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

To find no of lines in each member

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: To find no of lines in each member
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: 2360
Location: Israel

PostPosted: Sun Feb 17, 2008 4:54 pm    Post subject:
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    Post subject:
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: 2360
Location: Israel

PostPosted: Sun Feb 17, 2008 6:41 pm    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Sun Feb 17, 2008 11:47 pm    Post subject: Reply to: To find no of lines in each member
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    Post subject:
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: 2360
Location: Israel

PostPosted: Mon Feb 18, 2008 11:37 am    Post subject:
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    Post subject:
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    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 find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts How to find the first monday of the w... abdulrafi COBOL Programming 10 Fri Nov 25, 2016 3:24 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts Find out a active PGM jpsager JCL & VSAM 10 Fri Oct 07, 2016 4:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us