In <[email protected]>, on 09/10/2012
at 06:04 AM, "Kenneth J. Kripke" <[email protected]> said:
>Next will come the member NAME, ttr, C field, and, the number of
>TTRN's. You will want to AND out the C field. Then multiply the
>number of ttrn's by 2 to convert to bytes.
>This will be your increment to the next entry into the Directory
>block.
Close but no cigar. First, TTRN is 4 bytes, not two. Second, you don't
even need to worry about the number of TTRN's, since they are
contained in the user data. And, finally, you need to multiply bits
3-7 of C by two to get the length of the user data. Add the last to
the basic 12 bytes to get the offset to the next entry.
>I don't know if the directory block is marked with XL4'FFFFFFFFF'
>as a member name or not to denote the logical end.
Yes. "The last entry in the last used directory block has a name field
of maximum binary value (all 1s, a TTR field of zeros, and a
zero-length user data field)."
--
Shmuel (Seymour J.) Metz, SysProg and JOAT
ISO position; see <http://patriot.net/~shmuel/resume/brief.html>
We don't care. We don't have to care, we're Congress.
(S877: The Shut up and Eat Your spam act of 2003)
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN