Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8339
Location: Dubuque, Iowa, 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: 8685
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

Senior Member


Joined: 14 Mar 2007
Posts: 10478
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 How to include a particular field val... sakrat DFSORT/ICETOOL 8 Fri Apr 06, 2018 8:27 pm
No new posts Reformatting and adding additional fi... Badbeef SYNCSORT 6 Thu Apr 05, 2018 4:45 pm
No new posts write multiple lines in PS file in cobol Balu5491 COBOL Programming 7 Wed Mar 07, 2018 10:27 am
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

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us