Receiving Text Files on the AS/400 System to the QSYS.LIB FileSystem
Because the AS/400 QSYS.LIB file system internally supports a record structure,
the AS/400 FTP converts files received on theAS/400 system into a record
structure and converts files sent from the AS/400 system into the FTP file structure.
Textfiles received on the AS/400 system by FTP are converted into a record
structure in the following manner:
vWhen AS/400 FTP receives a file and that file already exists on theAS/400
system, the record length of the existing file is used.
vWhen AS/400 FTP creates a new file on theAS/400 system, it uses the length
(excluding trailing spaces) of the longest line or record in the file as the record
length of the file.
Textfiles sent from the AS/400 system by FTP are converted into a file structure by
removing the trailing blanks from each line or record and sending the truncated
record.
Figure 171. QFileSvr.400File System Example
NAMEFMT 1
LCD /CLIENTDIR1
CD /QFileSvr.400/AS012/FLSDIR
PUT FILE.ABC
GET FILE.ABC /CLIENTDIR2/FILE.ABC
CD /QFileSvr.400/AS012/QOpenSys/FLSDIR
PUT FILE.ABCÍ GET FILE.ABC /CLIENTDIR2/FILE.ABC (REPLACE
CD /QFileSvr.400/AS012/QLANSrv/NWS/LANSRV/DSK/K/FLSDIR
PUT FILE.ABC
GET FILE.ABC /CLIENTDIR2/FILE.ABC (REPLACE
SYSCMD RMVLNK '/CLIENTDIR2/FILE.ABC'
DELETE /QFileSvr.400/AS012/FLSDIR/FILE.ABC
DELETE /QFileSvr.400/AS012/QOpenSys/FLSDIR/FILE.ABC
DELETE /QFileSvr.400/AS012/QLANSrv/NWS/LANSRV/DSK/K/FLSDIR/FILE.ABC
QUIT
Figure 172. Subcommands to TransferFiles Using QFileSvr.400
262 OS/400 TCP/IPConfiguration and Reference V4R4