Followthesesyntaxconventions whenyouusetheFile TransferProtocol(FTP)serversubcommands.
UppercaseLetters
Youmust enterlettersinuppercase exactlyasshown inthesyntax definitionsforsubcommands. Youcanentertheselettersineitheruppercase orlowercase.
LowercaseWordsorHyphenatedTerms
Lowercasewordsorhyphenatedterms,suchasremotefileandaccount-information,represent variablesfor whichyoumustsubstitute specificinformation.
Brackets[]
Youcanconsider words,symbols,orphrasesplacedwithinbracketstobe optional.
LeftParentheses (andAsterisks*
Youmust enterleftparenthesesandasterisksexactlyasshowninthesyntaxdefinitions.
Braces{}
Bracesindicatea groupofparameters,values,orvariablesthatyoucanrepeat.
Ellipsis...
Ellipsesindicatethatyoucanincludezero ormorerepetitionsof theprecedingvariable enclosed withinbrackets.
VerticalBar|
Avertical barbetweenparametersorvaluesindicatesthatyoucanspecifyoneortheother,but notboth,at onetime.Youcanseetheverticalbarsplacedwithinsetsofbracketsorbraces.
Related reference
“FileTransferProtocolserversubcommands”onpage41
ThesesubcommandsrepresentcommunicationbetweentheFileTransfer Protocol(FTP)clientand the FTPserver.Thistopicincludesdescriptionsfori5/OSCL-equivalentsubcommandsthatareuniqueto thei5/OSFTPserver.
“ADDM (AddPhysicalFileMember)”onpage43
TheADDMi5/OSFTPserversubcommand addsamembertoa physicalfile.
“ADDV(AddPhysicalFile VariableLengthMember)”onpage43
“APPE (AppendtoExistingFile)”onpage44
TheAPPEFTPserversubcommandacceptsthetransferreddataand storesitina fileontheFTP server.Ifthefilethatisspecifiedexists,thesubcommandappendsthedatatothatfile;otherwise,the subcommandcreates thespecifiedfile.
“AUTH (Authorization)”onpage44
TheAUTHi5/OSFTPserversubcommand definestheauthentication andsecuritymechanismthatis usedforthecurrentFTPsession.
“CRTL(CreateLibrary)”onpage45
TheCRTLi5/OSFTPserversubcommandcreatesa library.
“CRTP(CreatePhysicalFile)”onpage46
TheCRTPi5/OSFTPserversubcommandcreates aphysicalfile.
“CRTS(CreateSourcePhysicalFile)”onpage46
TheCRTSi5/OSFTPserversubcommandcreates asourcephysicalfile.
“CWD(ChangeWorkingDirectoryorLibrary)”onpage46
TheCWDi5/OSFTPserversubcommandchanges theworking directory,library,orfilegroup.
“DBUG (TurnontheFTPServerTrace)”onpage47
TheDBUGi5/OSFTPserversubcommandstartsorendsa servertrace.
“DELE(DeleteFileorDocument)”onpage47
TheDELEi5/OSFTPserversubcommanddeletesa file,amember,oradocument.
“DLTF(DeleteFile)”onpage47
TheDLTFi5/OSFTPserversubcommanddeletes afile.
“DLTL(DeleteLibrary)”onpage48
TheDLTLi5/OSFTPserversubcommand deletesalibrary.
“HELP(GettingHelpfromaRemoteSystem)”onpage48
TheHELPi5/OSFTPserversubcommanddisplaysinformationaboutFTPserversubcommands.
“LIST(FileList)”onpage48
TheLISTi5/OSFTPserversubcommanddisplays alistofdirectory entries,librarycontents, orfiles ina filegroup.
“MKD(MakeDirectory)” onpage49
TheMKDi5/OSFTPserversubcommandcreatesa directory.
“MODE(SetTransfer Mode)”onpage49
TheMODEi5/OSFTPserversubcommandspecifiesthemodeordataformatinwhichyouwant transmitdata.
“NLST(Name List)”onpage50
TheNLSTi5/OSFTPserversubcommanddisplaysnamesofmultiple files,a filegroup,adirectory, ora library.
“NOOP(Obtain ServerResponse)” onpage50
TheNOOPi5/OSFTPserversubcommandchecksiftheFTPserverisconnectedandresponding. If theserverisresponding,theserversendsanOKreply totheclient.Thesubcommanddoesnotaffect serverprocessinginanyotherway.
“PASS(Password)”onpage50
ThePASSi5/OSFTPserversubcommandsendsapasswordtotheFTPserver.
“PASV (UsePassiveDataConnection)”onpage51
ThePASVi5/OSFTPserversubcommandtellstheFTPservertopassivelyopenthenextdata connection.
“PBSZ(ProtectionBufferSize)” onpage51
ThePBSZi5/OSFTPserversubcommanddefinesthelargestbuffersizetobe usedfor application-levelencodeddatasentorreceivedonthedataconnection.
“PORT(Data Port)”onpage51
ThePORT i5/OSFTPserversubcommand identifiesthedataportonwhichtheclientwilllistenfora connection.
“PROT (DataChannelProtectionLevel)”onpage52
ThePROTi5/OSFTPserversubcommanddefinestheprotectionusedforFTPdataconnections, whichareusedtotransmitdirectorylistingsandfiledata.
“PWD(Display WorkingDirectoryorLibrary)”onpage52
ThePWDi5/OSFTPserversubcommanddisplaysthenameof thecurrentdirectoryor library.
“QUIT(EndanFTPServerSession)” onpage52
TheQUITi5/OSFTPserversubcommandlogsofffromtheclientuserandclosesthecontrol connection.Ifa filetransfer isinprogress,theconnectionremainsopenuntilthefiletransferis complete, andthentheserverclosestheconnection.
“RCMD(SendaCLCommandtoanFTPServerSystem)”onpage53
TheserversubcommandRCMD runsi5/OScontrollanguage(CL)commandsontheFTPserver.The lengthoftheRCMD subcommandstringisupto1000characters.Becausenopromptingisavailable fortheRCMDsubcommand,theRCMDsubcommand stringmust includeallnecessaryparametersto runtheCLcommand.
“REIN(ReinitializeSessionbetweenSystems)”onpage53
TheREINi5/OSFTPserversubcommandrestartsa sessiononanFTPserver.
“RETR(RetrieveFile)”onpage53
TheRETR i5/OSFTPserversubcommandretrieves datafromtheFTPserver.
“RMD(Remove Directory)”onpage54
TheRMDi5/OSFTPserversubcommandremovesa directory.
“RNFR(RenameFrom)”onpage54
TheRNFRi5/OSFTPserversubcommandrenamesfiles.Itmust beimmediatelyfollowedbyan RNTO(RenameTo)serversubcommand.
“RNTO(RenameTo)”onpage54
TheRNTOi5/OSFTPserversubcommandspecifies thenew filenamewhenrenamingfilesonthe FTPserver.ItmustimmediatelyfollowanRNFRsubcommand,whichspecifiedthefilenametobe changed.
“SITE(SendInformationUsed bya ServerSystem)”onpage55
TheSITEi5/OSFTPserversubcommandsendsinformationorprovidesservices thatareusedbythe FTPserver.
“STOR(StoreFile)”onpage57
TheSTORi5/OSFTPserversubcommand savesdataona serverandreplacesanexistingfile.
“STOU(StoreUnique)”onpage57
TheSTOUi5/OSFTPserversubcommandsavesdataontheFTPserveranddoesnotreplacean existingfile.Theservergeneratesauniquefilename.Thenameassignedtothefilewillappearinthe reply thatissentbacktotheclient.
“STRU(Specify FileStructure)”onpage57
TheSTRUi5/OSFTPserversubcommandspecifiesthestructureofa fileasacontinuoussequenceof databytes.
“SYST (IdentifytheNameoftheOperatingSystem)”onpage58
TheSYSTi5/OSFTPserversubcommanddisplaysthenameoftheoperatingsystemthattheFTP serverisrunningon.
“TIME(SetTimeoutValuesforFTPServer)”onpage58
TheTIMEi5/OSFTPserversubcommand setstheinactivity andtransmittimeoutvalue fortheFTP server.
“TYPE(SpecifyRepresentationType)”onpage59
TheTYPE i5/OSFTPserversubcommand specifiesthefile-transfertypeortherepresentationin whichthetransferistotakeplace.
“USER(Senda UserLogonIDtotheServer)”onpage60
TheUSERi5/OSFTPserversubcommandsendsauserlogonIDtotheFTPserver.IftheUSER subcommandissuccessfulandthesystemisconfiguredforpasswordsecurity,theFTPserversendsa reply totheclient andrequestsapassword.