Allocating a PDS or PDSE for use with LNKLST

When using PDSs and PDSEs, you can allocate LNKLST data sets with secondary extents. However, IBM® suggests that PDSs in the LNKLST be allocated with only primary extents, for two reasons. First, this makes it easier to stay within the 255-extent limit for an active LNKLST concatenation without having to reallocate data sets in fewer extents initially. Second, if a PDS is updated while in the link list, it can be extended if it has been allocated using secondary space. This can cause members to be placed in extents that did not exist when the LNKLST concatenation was opened. Any attempt to access a member in a new extent causes the requesting program to abend with a logical I/O error. This recommendation does not apply to PDSEs.

If an LNKLST PDS has expanded into a secondary extent since the most recent IPL, a program can use either of the following methods to access a member in the secondary extent: