IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

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


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Superior Member


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

PostPosted: Fri Oct 31, 2008 12:37 pm
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

Superior Member


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

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

Hi,

You might like to check this link as well..

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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri Oct 31, 2008 12:41 pm
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri Oct 31, 2008 12:53 pm
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
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
Reply with quote

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

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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri Oct 31, 2008 1:16 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts Duplicate several members of/in one l... JCL & VSAM 7
No new posts I need a 4 lines block where substrin... DFSORT/ICETOOL 12
Search our Forums:

Back to Top