If you the DIR /ABC/XYZ exists on your system and you run command
WRKLNK OBJ(ABC/XYZ) the directory will display on your screen. If you want to know the contends of /XYZ, you just need to use option 5=Display.
I think I may not be understaning the question properly.
Can you be more specific on what you want to accomplish.