FTP server subcommandPROT[C|P]
CRTCCSID *SYSVAL
NewdatabasefilescreatedduringASCIIfiletransfersusetheCCSIDthatwasspecifiedbythe QCCSIDsystemvalue.
CRTCCSID[CCSID-number]
SpecifytheCCSIDwhencreating databasefilesontheclientduringASCIIfiletransfers.The servervalidatesthis value.
CRTCCSID
Displaya messagethatcontainsthecurrentFTPclientCRTCCSIDsetting.
NULLFLDS0
TheFTPserverdoesnotallowtransfer ofdatabasefilesthatcontainNULLfields.Thisisthe default.
NULLFLDS1
TheFTPserverallowsthetransferofdatabase filesthatcontainNULLfields.
Note: Thetransfer offilesthatcontainNULLfieldsrequiresboththeclient andservertohave
thissettingenabled.IftheservertransfersafilethatcontainsNULLfieldstoanFTPserver thatisnotontheSystemiplatform,orifthetransfertype resultsincodepageconversion ofthedata,thenresultsareunpredictable.
NULLFLDS
Returna messagethatindicatesthecurrentFTPserverNULLFLDSsetting.
TRIM0
SetTrimoptiontoOFF.TheFTPserversendstrailingblanks ofdatabaserecords.
TRIM1
SetTrimoptiontoON.TheFTPserverdoesnotsendtrailing blanksofdatabaserecordswhen transferringdatabase filesthatusefilestructure andstreammode.Thisisthedefault.
TRIM2
TheFTPserverdoesnotsend trailingblanks ofdatabaserecordsforalltransfers, including recordstructureand blockmode.
TRIM ReturnsamessagethatindicatesthecurrentsettingoftheFTPserverTrimoption.
Notes:
1. Beforethissubcommandbecomesavailable,trailing blanksofQSYS.LIBfilesystem
recordsare alwaysremovedbeforetransferringthefiletotheFTPserver.
2. TRIMsettingsdonotapplytoTYPEI(binary)filetransfers. Blanksarenever trimmed
forTYPEIfiletransfers,regardlessoftheTRIMsetting.
Related tasks
“ConfiguringFTPservers forgraphicalFTPclients andWebtools”onpage8
FileTransfer Protocol(FTP)servers onthei5/OSoperatingsystemsupportgraphical FTPclients,Web browsers,and otherWeb tools.BecausemostgraphicalFTPclients usetheUNIX-styleformatastheir listformatandpathfileastheirfilenameformat, youneedtoconfigureyour FTPservertosupport these formats.
Related reference
“Fileanddirectoryentriesini5/OSformat”onpage9
Systemiclients supportlistingthefilesona FileTransferProtocol(FTP)serverinboththei5/OS formatandtheformatspecifictoUNIX.Thistopicdiscussesthei5/OSformat.
“Filesand directoryentriesinUNIX-style format”onpage10
Whenlistingfilesand directoriesona FileTransferProtocol(FTP)server,Systemiclients listthefiles inboththei5/OSformatandtheUNIX-styleformat. ThistopicdiscussestheUNIXformat.
“LIST(FileList)”onpage48
TheLISTi5/OSFTPserversubcommanddisplays alistofdirectoryentries, librarycontents, orfiles ina filegroup.
“FileTransferProtocolserversyntax conventions”onpage141
Followthesesyntax conventionswhenyouusetheFileTransferProtocol(FTP)serversubcommands.
STOR(Store
File)
TheSTORi5/OSFTPserversubcommandsavesdataonaserverand replacesan existingfile.
FTPserver
subcommand
Related reference
“FileTransferProtocolserversyntax conventions”onpage141
Followthesesyntax conventionswhenyouusetheFileTransferProtocol(FTP)serversubcommands.
STOU(Store
Unique)
TheSTOUi5/OSFTPserversubcommandsavesdataontheFTPserverand doesnotreplace anexisting file.Theservergeneratesa uniquefilename. Thenameassignedtothefilewillappearinthereply that issent backtotheclient.
FTPserver
subcommand
Related reference
“FileTransferProtocolserversyntax conventions”onpage141
Followthesesyntax conventionswhenyouusetheFileTransferProtocol(FTP)serversubcommands.
STRU
(SpecifyFile
Structure)
TheSTRUi5/OSFTPserversubcommandspecifies thestructure ofafileasa continuoussequenceof databytes.
FTPserver
subcommand
F Afilestructure.Thefilestructure isa continuoussequenceof databytes.
R Arecord structure.Thefileisasequenceofsequentialrecords.
Notes:
1. Thefilestructure affectsthetransfermodeandtheinterpretationand storageofafile.
2. Ifthereisnoparameter,theserverreturnsareply thatindicatesthepresentspecificationfor
filestructure.
Related reference
STORremotefile
STOUremotefile
“FileTransferProtocolserversyntax conventions”onpage141
Followthesesyntax conventionswhenyouusetheFileTransferProtocol (FTP)serversubcommands.
SYST
(Identify
theName
of
the
Operating
System)
TheSYSTi5/OSFTPserversubcommand displaysthenameoftheoperatingsystemthattheFTPserver isrunningon.
FTPserver
subcommand
Thereturnedinformationissystemdependent.
TheFTPserverreply includestheversionofTCP/IP.Hereisanexampleserverreply:
i5/OS is the remote operating system. The TCP/IP version is "V4R4M0".
Related reference
“FileTransferProtocolserversyntax conventions”onpage141
Followthesesyntax conventionswhenyouusetheFileTransferProtocol (FTP)serversubcommands.
TIME
(Set
TimeoutValues
for
FTPServer)
TheTIMEi5/OSFTPserversubcommandsetstheinactivityand transmittimeoutvaluefortheFTP server.
FTPserver
subcommand
AftertheFTPcontrolconnectionisestablishedbetweentheFTPclientandtheFTPserver,theFTPserver controlsthetimeoutforthisconnection.Thisistheinactivity timeoutvalue.
Thereisalso atimeoutvalueforthedataconnection,knownasthetransfertimeout. Theformatof theTIMEFTPserversubcommandis:
inactivity
Thenumberofsecondstheserverwaitsbeforeending theconnection withtheclient.Inactivity timeoutvaluescanrangefrom1-9,999,999seconds.Thedefaultinactivity timeoutvalue is300 seconds.
transfer
Thefiletransfertimeoutinseconds.Thisparameterisoptional.Ifyoudonotspecifythis parameter,thentheserverdoesnotchangethecurrentvalue.Transfer timeoutvaluescanrange from1-9,999,999seconds.Thedefaulttransfer timeoutvalue is420seconds.
Forexample,tosettheinactivity timeoutvalue oftheFTPserverto1000seconds,andkeepthecurrent valueofthetransfer timeout,enterthis:
QUOTE TIME 1000
TheTIMEsubcommand isnotastandardFTPsubcommand.Itisi5/OSFTPserverspecific.
Related reference
“FileTransferProtocolserversyntax conventions”onpage141
Followthesesyntax conventionswhenyouusetheFileTransferProtocol (FTP)serversubcommands.
SYST
TYPE
(SpecifyRepresentation
Type)
TheTYPEi5/OSFTPserversubcommandspecifiesthefile-transfertype ortherepresentationinwhich thetransferistotakeplace.
FTPserver
subcommand
A Specifiesthetransfer typeasthedefault(ASCII)transfertype.Theserverdoesnotassociateany verticalformatcontrolwiththefile.TheserveronlysupportsthedefaultformatNONPRINTfor ASCII.TheASCIItransfer typeisforthetransfer oftextfiles,exceptwhenbothsystemsusethe EBCDICtype.
Note: TheCCSIDforTYPEAistheCCSIDvalueoftheFTPserverconfigurationattributes.You
canchangetheseattributeswith theCHGFTPAcommand.
B ShiftJISKanji(CCSID932)