Space utulity



Ask queries about other IBM Tools like Tivoli, COBTEST, Fault Analyzer, z/OS File Manager, Workload Simulator, APA, SCLM, Merge & Migration Tools etc...

Space utulity

Postby abhinavgoelsai » Fri Jan 06, 2012 10:40 am

Hi,

Is there any ISPF command/utility exists where I can find out how much space(TRK/CYL) is required to a dataset for 'N' number of records.?


thank you
abhinavgoelsai
 
Posts: 7
Joined: Fri Jan 06, 2012 8:56 am
Has thanked: 0 time
Been thanked: 0 time

Re: Space utulity

Postby steve-myers » Fri Jan 06, 2012 11:15 am

No. I believe there are Rexx execs floating around that can compute this for you, though you would have to provide LRECL and BLKSIZE in addition to number of records. No, I do not have one.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: Space utulity

Postby abhinavgoelsai » Fri Jan 06, 2012 11:19 am

thanks for the response steve.. i beleive there a tool exists which can count how many records can fit in a dataset.. any idea if there any ISPF option..
abhinavgoelsai
 
Posts: 7
Joined: Fri Jan 06, 2012 8:56 am
Has thanked: 0 time
Been thanked: 0 time

Re: Space utulity

Postby NicC » Fri Jan 06, 2012 11:54 am

There is an IBM quick reference which will give you what you want - cannot remember its refernce number and do not have time to look for it. Also, as Steve has said - there are things floating about "out there". You probably did not Google. Best to create your own - if there is not already an in-house version.

And if by ISPF option you mean is there one that can be accessed via the ISPF menus then why do you not search the b******y menus yourself or read the ISPF tutorial/documentation. Remember that menus can be tailored in-house so that some 'tools' appearing on the menus are in-house.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Space utulity

Postby abhinavgoelsai » Fri Jan 06, 2012 11:58 am

i have searched all that.. googled thru and finally came to u guys.. never mind i ll see thank you
abhinavgoelsai
 
Posts: 7
Joined: Fri Jan 06, 2012 8:56 am
Has thanked: 0 time
Been thanked: 0 time

Re: Space utulity

Postby Robert Sample » Fri Jan 06, 2012 4:04 pm

The amount of space required depends not only on the number of records, but also the length of each record and how many records are in each block (since the block is what is written to disk). You need to Google GX26-4577 to find the 3390 reference manual that tells you how many records will fit in a track for the various block sizes. When using 80 byte records, for example, the best block size allows 698 records per track while the worst block size allows 156 records per track. So merely by changing the block size, a data set can use over 4 times the number of tracks for the same number of records.

You could use a SORT in copy mode to count the records; there are other ways (and vendor tools such as File Aid can provice record counts as well).
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Space utulity

Postby enrico-sorichetti » Fri Jan 06, 2012 7:34 pm

see here for a blocks per track calculator,
after You have found the number of records that fit on a track for a certain blocksize
a simple division will tell how much space allocate
http://ibmmainframes.com/about55037.html
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

Re: Space utulity

Postby mikereis » Fri Jan 06, 2012 10:54 pm

You may also choose to allocate in records. Google on AVGREC for more information and examples of this. Over 20 years ago IBM began recommending this approach to allocation which requires SMS.

The advantage is that all you need to know is the average length of records you are allocating and the approximate number of records.
mikereis
 
Posts: 14
Joined: Thu Jan 13, 2011 6:23 am
Has thanked: 0 time
Been thanked: 0 time


Return to Other IBM Tools