Figure 9: Obtaining a list of files from a remote folder

ftp> syscmd chgcurlib rmtlsts
(Changes the current library to RMTLSTS)
ftp> ls qgpl (disk
(Generate the listing into the LSOUTPUT file)
ftp> dir qgpl (disk
(Generate the listing into the DIROUTPUT file)
ftp> quit
(End FTP session)