On 24/10/2024 3:30 am, Sergio via groups.io wrote:
When I try to allocate 1 block, DSLIST shows ALTRK=1
Correct - for OS/360 and descendants the smallest quantum for disk space allocation is one track.
The VTOC keeps track (ha!) of which tracks are allocated to which data sets and which tracks are free (unallocated).
You can use a part of a track but you cannot allocate part of a track.
When using ISPF (the real one) and other utilities to show data set attributes, space quantities shown may not match the allocation spec used at creation time.
If you request 1 block and 10 blocks fit to the track then a 10 block allocation may be reported.
When you request 300 tracks (for example), up to 5 extents may be used to satisfy the primary space request.
If the 300 tracks were allocated in 5 extents and the first extent was 120 tracks, then IBM's ISPF option 3.2 would report the primary allocation as 120 tracks.
Note that if the primary allocation used 5 extents, then only 11 extents of secondary space are available for future use.
Multiple extents are used for the primary space allocation when there is no free extent large enough to satisfy the request in 1 extent - hence the value of defragging disks.
For MVS 3.8 the "best fit" algorithm is used, so that if you request 5 tracks and there is a 5-track free space extent, then that will be used for the request.
I forget when - probably in MVS/ESA times - the algorithm changed to "first fit".
Cheers,
Greg