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: 7931
Location: Bellevue, IA

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: 10210
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 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 What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts Insert Lines in JCL with Rexx after a... Willy Jensen CLIST & REXX 3 Tue Aug 30, 2016 4:18 pm
No new posts File Stauts 92 with member of PDS sandip_mainframe COBOL Programming 4 Fri Jun 10, 2016 12:06 pm


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