Use the DIRECTORYMODE statement to specify whether only the data set qualifier immediately below the current directory is treated as an entry in the directory or if all data set qualifiers below the current directory are treated as entries in the directory.
.-DIRECTORYMODE FALSE------. >>-+--------------------------+-------------------------------->< '-DIRECTORYMODE--+-TRUE--+-' '-FALSE-'
ftp> ls
200 Port request OK.
125 List started OK.
AREADME
BAILEY
BAILEY.MSYS.SPX001.I2.TEMP
BAILEY.TRANS
EZACIMJA
ISPF.ISPROF
XMLS
XX.AREADME
250 List completed successfully.
101 bytes received in 0.03 seconds (3.37 Kbytees/sec)
ftp> ls
200 Port request OK.
125 List started OK.
AREADME
BAILEY
BAILEY
EZACIMJA
ISPF
XMLS
XX
250 List completed successfully.
51 bytes received in 0.03 seconds (1.07 Kbytees/sec)