IBM AS/400e Computer Hardware User Manual


 
Receiving Text Files on the AS/400 System to the QSYS.LIB File
System
Because the AS/400 QSYS.LIB file system internally supports a record structure,
the AS/400 FTP converts files received on the AS/400 system into a record
structure and converts files sent from the AS/400 system into the FTP file structure.
Text files received on the AS/400 system by FTP are converted into a record
structure in the following manner:
v When AS/400 FTP receives a file and that file already exists on the AS/400
system, the record length of the existing file is used.
v When AS/400 FTP creates a new file on the AS/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.
Text files 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.400 File 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 Transfer Files Using QFileSvr.400
262 OS/400 TCP/IP Configuration and Reference V4R4