The variable dliVar.segmentLevel contains the level number of the lowest-level segment that was accessed on the most recent DL/I I/O call.
The root level is 01. If DL/I was unable to retrieve the requested segment, this is the level from the last successful call.