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
 

 

How to find the total num of lines in all members of a PDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
ponnu116
Warnings : 1

New User


Joined: 12 Sep 2007
Posts: 21
Location: chennai

PostPosted: Fri Oct 31, 2008 12:28 pm    Post subject: How to find the total num of lines in all members of a PDS
Reply with quote

I need to find the total Lines of Code in a PDS which has 1300 members.

How can i find the total number of lines using SORT or some other tool.
Back to top
View user's profile Send private message

Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Oct 31, 2008 12:37 pm    Post subject:
Reply with quote

ISPF option 3.4, bring up the PDS on a selection list, enter PX beside the PDS. This prints the member names and line counts along with total lines.

PS. why there is a such a need by the way ?
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Oct 31, 2008 12:37 pm    Post subject:
Reply with quote

Hi,

You might like to check this link as well..

http://ibmmainframes.com/viewtopic.php?t=35160&highlight=lines
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Fri Oct 31, 2008 12:41 pm    Post subject: Reply to: How to find the total num of lines in all members
Reply with quote

go to option 3.4 ( dataset list) and list Your dataset

put PX in front of it

then in the command line type LIST

choose option 3 keep and continue with new

browse the last &PREFIX.SPFx.LIST

and You will find a detailed report on Your pds
Back to top
View user's profile Send private message
ponnu116
Warnings : 1

New User


Joined: 12 Sep 2007
Posts: 21
Location: chennai

PostPosted: Fri Oct 31, 2008 12:46 pm    Post subject:
Reply with quote

Hi,


Thanks for the info, it was required for some estimation.i did as u told but the problem is when i give PX im seeing index printed but where can i see that information
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Fri Oct 31, 2008 12:53 pm    Post subject: Reply to: How to find the total num of lines in all members
Reply with quote

I SEE IT
Code:

 DATASET:     IBMUSER.TEST.JCLLIB                                             
                                                                               
                                                                               
 GENERAL DATA:                     GENERAL DATA:                               
   VOLUME SERIAL:       SARES1       RECORD FORMAT:                   FB       
   DEVICE TYPE:           3390       RECORD LENGTH:                   80       
   ORGANIZATION:            PO       BLOCK SIZE:                  27,920       
   CREATION DATE:   2008/04/14       1ST EXTENT SIZE:                  8       
   EXPIRATION DATE: ***None***       SECONDARY QUAN:                   8       
                                                                               
                                                                               
                                                                               
                                                                               
  MEMBER           TTR   VERS.MOD    CREATION      DATE AND TIME         CURRENT
   NAME           (HEX)    LEVEL       DATE        LAST MODIFIED        NO. LINE
 AAA              000507   01.00   2008/07/15   2008/07/15  02:48:43         2 
 JTEST            000503   01.01   2008/05/19   2008/07/10  04:44:59         4 
 XYZ1             00050B   01.01   2008/10/30   2008/10/30  07:55:52         6 
 XYZ1A            00050F   01.00   2008/10/30   2008/10/30  08:05:17        13 
 XYZ1B            000511   01.00   2008/10/30   2008/10/30  08:11:30         7 
 XYZ2A            00050D   01.00   2008/10/30   2008/10/30  07:58:59        13 
 XYZ2Y            000513   01.00   2008/10/30   2008/10/30  08:12:58         7 
 Z                000505   01.00   2008/07/13   2008/07/13  00:41:58         5 
 ZZZ              000401   01.02   2008/06/18   2008/06/18  04:09:31       772 
   MAXIMUMS:               01.02   2008/10/30   2008/10/30  08:12:58       772 
   TOTALS:                                                                 829 
  END OF MEMBER LIST                                                           


did You follow my instructions ???
Back to top
View user's profile Send private message
ponnu116
Warnings : 1

New User


Joined: 12 Sep 2007
Posts: 21
Location: chennai

PostPosted: Fri Oct 31, 2008 1:00 pm    Post subject:
Reply with quote

Thank you very much guys, i could solve the problem.actually i was doing this using a search jcl which will give total number of lines processed.

but this method is good.thanks
Back to top
View user's profile Send private message
Amsar

New User


Joined: 26 Sep 2008
Posts: 84
Location: Chennai

PostPosted: Fri Oct 31, 2008 1:14 pm    Post subject:
Reply with quote

enrico,
What is dataset &PREFIX.SPFx.LIST ?

Thanks,
Amsar
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Fri Oct 31, 2008 1:16 pm    Post subject: Reply to: How to find the total num of lines in all members
Reply with quote

its the standard name of the ispf list dataset

&prefix is Usually Your tso userid

SPFx.. the x gets incremented for each list dataset geerated
( but it depends on Your ispf profile and termination settings )

LIST ... well tht' s self explaining

why don' t You try it icon_question.gif icon_biggrin.gif
Back to top
View user's profile Send private message
Amsar

New User


Joined: 26 Sep 2008
Posts: 84
Location: Chennai

PostPosted: Fri Oct 31, 2008 1:24 pm    Post subject:
Reply with quote

Thanks a lot enrico,
i am able to see the details of my PDS. icon_smile.gif
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 How to find the first monday of the w... abdulrafi COBOL Programming 10 Fri Nov 25, 2016 3:24 pm
No new posts Find out a active PGM jpsager JCL & VSAM 10 Fri Oct 07, 2016 4:32 pm
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm


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