DIRECTORYMODE (FTP client and server) statement

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.

Server
This setting applies when issuing the MGET, LS, DIR, and MDELETE subcommands.
Client
This setting applies when issuing the MPUT subcommand.

Syntax

Read syntax diagramSkip visual syntax diagram
   .-DIRECTORYMODE FALSE------.   
>>-+--------------------------+--------------------------------><
   '-DIRECTORYMODE--+-TRUE--+-'   
                    '-FALSE-'     

Parameters

TRUE
Specifies that only the data set qualifier immediately below the current directory is treated as an entry in the directory.
FALSE
Specifies that all data set qualifiers below the current directory are treated as entries in the directory. This is the default.

Examples

If DIRECTORYMODE TRUE:
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)
If DIRECTORYMODE FALSE:
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)