View previous topic :: View next topic
|
Author |
Message |
naveenjain20
New User
Joined: 26 Jul 2009 Posts: 6 Location: mysore
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
naveenjain20
New User
Joined: 26 Jul 2009 Posts: 6 Location: mysore
|
|
|
|
Thanks for quick response.
Can you please tell me if i can do it using sort or anyother utility. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
REXX would be easy enough |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
with ispf statistics turned on You get what You need at no charge! |
|
Back to top |
|
|
|