If you do a LISTA SYS ST H (from ISPF that would be TSO LISTA SYS ST H), you will get a list of allocated data sets. The STEPLIB DD statement contains the libraries searched for commands. However, SYSEXEC and SYSPROC may also be searched if the "command" is actually REXX or CLIST code.