Locating the last inserted sequential dependent segment

You can also retrieve the position information for the most recently inserted sequential dependent segment of a given root segment.

To do this, you issue a POS command with a qualification statement containing the root segment as the segment name. The current position after this type of command follows the same rules as position after a GU.

After a successful command, the I/O area contains:
LL
A 2-byte field containing the total length of the data in the I/O area, in binary.
Area Name
An 8-byte field giving the ddname from the AREA statement.
Position
An 8-byte field containing the position information for the most recently inserted sequential dependent segment. This field contains zeros provided no sequential dependent for this root exist.
Unused CIs
A 4-byte field containing the number of unused CIs in the sequential dependent part.
Unused CIs
A 4-byte field containing the number of unused CIs in the independent overflow part.