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

counting lines in member


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
naveenjain20

New User


Joined: 26 Jul 2009
Posts: 6
Location: mysore

PostPosted: Mon Apr 26, 2010 5:45 pm
Reply with quote

Hi,

i have a pds in which there are 100 members. say there are 50 members named as 'abcd****'. Now I want to know the no of lines in all the 50 members having name starting with abcd.
For example if each member with name abcd**** contain 100 lines the output should come 5000.
Also I am supposed to count the number of members in pds as well which starts with abcd. that means it should output as 50.
Can you please help me out, how it can be performed in jcl.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Mon Apr 26, 2010 5:49 pm
Reply with quote

Quote:
how it can be performed in jcl.
Sorry, it cannot. JCL executes programs. All it does is execute programs. It cannot process files, it cannot count things, all it can do is execute programs.

Now, if you had said you wanted to do this in JCL using COBOL, or SORT, or some other utility -- that can be done. But doing it in JCL? Can't be done.
Back to top
View user's profile Send private message
naveenjain20

New User


Joined: 26 Jul 2009
Posts: 6
Location: mysore

PostPosted: Mon Apr 26, 2010 6:03 pm
Reply with quote

Thanks for quick response.
Can you please tell me if i can do it using sort or anyother utility.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Apr 26, 2010 6:31 pm
Reply with quote

REXX would be easy enough
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Apr 26, 2010 6:33 pm
Reply with quote

with ispf statistics turned on You get what You need at no charge!
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
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
No new posts I need a 4 lines block where substrin... DFSORT/ICETOOL 12
No new posts Copy few lines from SYSOUT of 10 mill... All Other Mainframe Topics 5
Search our Forums:

Back to Top