Kirk

I would normally use BPAM and BLDL to see if first member is there. But if
you want starting TTR of first member and don't know if it exists or what
the member name is, there is always the option to read the PDS directory
sequentially using BSAM with 256 byte record length and scan the directory
blocks just like BLDL svc does to find entry with lowest TTR if any. There
are old examples of this kind of code in the SHARE SPLA files including
some of mine.  I once wrote a PDS scan utility to generate a formatted
dump of sorts of a PDS load module.  Of course such code is not very
portable and is not recommended.  For example, if there is no first
member, the starting TTR depends on the size of the directory and the
physical track size.  I'd rather let the OS figure that out in SVC code.

Don Higgins
[email protected]

Reply via email to