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
 

 

counting lines in member

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: counting lines in member
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: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Mon Apr 26, 2010 5:49 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

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

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Mon Apr 26, 2010 6:33 pm    Post subject: Reply to: counting lines in member
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
No new posts Browsing member from any PDS shiitiizz CLIST & REXX 7 Wed Mar 08, 2017 1:17 am
No new posts Bind plan as a member to another bind... rexx77 DB2 0 Thu Feb 16, 2017 2:02 am
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm


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