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

How to Calculate No of members in a pds?


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pkmurali
Warnings : 1

Active User


Joined: 15 Dec 2005
Posts: 271

PostPosted: Tue Jun 27, 2006 4:35 pm
Reply with quote

Hi All,
Let me like to know to calculate Number of Members in a pds Based on Primary Space(PS),Secondary Space(SS) and directory space(DS).For Example, A pds having PS=20,SS=20 & DS=400 what is the maximum number of members we can store in a pds?
Back to top
View user's profile Send private message
cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Tue Jun 27, 2006 7:53 pm
Reply with quote

Each directory record may contain 6 members, so setting the directory space to 400 would allow for about 2400 members.

This number of members would be independant of the primary and secondary space allocations. A member can be empty, contain 1 record, or 10 of thousands of records, so there is no way to know a maximum number of members. As members are added to the PDS, the PDS would take additional extents of 20 until all available space is used up and maximum extents are reached. At this point, attempting to save a member may result in a S-E37 abend which would indicate the PDS needs to be compressed.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Jun 28, 2006 12:38 pm
Reply with quote

cpuhawg - Unless you use PDS-E...

O.
Back to top
View user's profile Send private message
rexxhead

New User


Joined: 15 Nov 2005
Posts: 3
Location: Florida SunCoast

PostPosted: Mon Jul 24, 2006 10:05 pm
Reply with quote

cpuhawg wrote:
Each directory record may contain 6 members, so setting the directory space to 400 would allow for about 2400 members.


A directory entry is 256 bytes. ISPF stores about 40 bytes of directory data for each member, so for a dataset where all the members have ISPF statistics, the answer is '6'. The minimum space required for a directory entry is about 12 bytes so you can fit 20+ members/block if they are 'plain vanilla'. There will always be an entry for 'FFFFFFFF'x so the number of real members that can be stored is typically one fewer than calculated.

A 3390-equivalent will hold 43 directory blocks per track and directory space is always allocated in full tracks, so it makes sense to ask for directory blocks in multiples of 43.
Back to top
View user's profile Send private message
muthusamy

New User


Joined: 21 Feb 2008
Posts: 4
Location: chennai

PostPosted: Mon Dec 01, 2008 6:26 pm
Reply with quote

Max no of members for a pds is calculated by the following formula
Max=(6*n)-1 where n is the no of directory blocks

If n=1 then max no of members for a pds=(6*1)-1=5
If n=2 then max no of members for a pds=(6*2)-1=11

I checked above answers by manually creating members in Mainframe.
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
No new posts how to calculate SUM for VB file usin... JCL & VSAM 1
No new posts Duplicate several members of/in one l... JCL & VSAM 7
No new posts list pds members name starting with xyz CLIST & REXX 11
No new posts REXX editmacro to compare two members... CLIST & REXX 7
Search our Forums:

Back to Top