Sample Command Line Transfers
Transfers can be done using either the screens or the command line. When using the command line, the user can use the screens as an aid, but using the screens is not necessary.
Description | Command |
---|---|
Sending a file from a local IBM i system to a remote z/OS system | CFSNDF RMTLOCNAME(ZOSSYS) FROMFILE(FILENAME) FROMLIB(TESTLIB) FROMMBR(FILEMBR)IPPORT(46464) TLS(*NO) TOFILE(MAINFROM.DATASET. FILENAME2) RMTUSRID(RMTUSER)RMTPWD(PSWD) DTACPR(*ZLIB) ZLIBLVL(*ZLIB1) ENCRYPT(*TDES) CRCCHECK(*YES)COSNAME(FAST1) DB2OPT(*NO) PLATOPT(*ZOS) |
Receiving a file from a remote UNIX system to a local IBM i system | CFRCVF RMTLOCNAME(UNIXSYS) TOFILE(FILENAME2) TOLIB(TESTLIB) TOMBR(FILEMBR) IPPORT(56565) TLS(*YES) FROMFILE('HOME\DIRECTORY\ FILENAME') RMTUSRID(RMTUS ER) RMTPWD(PSWD) CVTASCII(*YES) CONVCRLF(*YES) RMVTRSPACE(*YES) DTACPR(*ZLIB) ZLIBLVL(*ZLIB2) ENCRYPT(*BF) CRCCHECK(*NO) COSNAME(SLOW1) DB2OPT(*NO) PLATOPT(*UNIX) |
Sending an IFS file from a local IBM i system to a remote IBM i system | CFSNDIFSF RMTLOCNAME(IBMISYS) FROMIFS('/HOME/DIRECTORY/ FILENAME') IPPORT(46464)TLS(*NO) TOFILE('/HOME/DIRECTORY/ FILENAME2') RMTUSRID(RMTUSER) RMTPWD(PSWD)DTACPR(*ZLIB) ZLIBLVL(*ZLIB3) ENCRYPT(*RIJ) CRCCHECK(*NO) COSNAME(FAST2) PLATOPT(*IBMI) |
Receiving an IFS file from a remote IBM i system to a local IBM i system | CFRCVIFSF RMTLOCNAME(IBMISYS) TOIFS('/HOME/DIRECTORY/ FILENAME2') IPPORT(56565)TLS(*YES) FROMFILE('/HOME/DIRECTORY/ FILENAME') RMTUSRID(RMTUSER) RMTPWD(PSWD) DTACPR(*ZLIB) ZLIBLVL(*ZLIB4) ENCRYPT(*NONE) CRCCHECK(*YES)COSNAME(SLOW2) PLATOPT(*IBMI) |
Executing a command on a remote Windows system. Also receiving data from a remote Windows system to a File on the local IBM i system | CFEXECMD RMTLOCNAME(WINDOWSYS) EXECMD(IPCONFIG) IPPORT(58585) TLS(*TUNNEL)RMTUSRID(RMTUSER) RMTPWD(PSWD) RMTDOMAIN(DOMAINNAME) LOCFILE(FILEMBR/TESTLIB/ FILENAME)PLATOPT(*WINDOWS) DTACPR(*ZLIB) ZLIBLVL(*ZLIB3) ENCRYPT(*BFL) CRCCHECK(*YES) COSNAME(FAST3) |
Sending a save file from a local IBM i system to a remote IBM i system | CFSNDSAVF RMTLOCNAME(IBMISYS) FROMFILE(TESTLIB/SAVFILE) TOFILE(TESTLIB2/SAVFILE2)IPPORT(58585) TLS(*TUNNEL) RMTUSRID(RMTUSER) RMTPWD(PSWD) DTACPR(*ZLIB) ZLIBLVL(*ZLIB5) ENCRYPT(*TDES) CRCCHECK(*YES) COSNAME(FAST4) |
Receiving a save file from a remote IBM i system to a local IBM i system | CFRCVSAVF RMTLOCNAME(IBMISYS) TOFILE(TESTLIB2/SAVFILE2) FROMFILE(TESTLIB/SAVFILE)IPPORT(56565) TLS(*YES) RMTUSRID(RMTUSER) RMTPWD(PSWD) DTACPR(*ZLIB) ZLIBLVL(*ZLIB9) ENCRYPT(*DES) CRCCHECK(*NO) COSNAME(SLOW3) |
Sending a library from a local IBM i system to a remote IBM i system | CFSNDLIB RMTLOCNAME(IBMISYS) FROMLIB(TESTLIB) TOLIB(TESTLIB2) IPPORT(58585) TLS(*TUNNEL)RMTUSRID(RMTUSER) RMTPWD(PSWD) MBROPT(*ALL) ALWOBJDIF(*ALL) DTACPR(*ZLIB) ZLIBLVL(*ZLIB2)ENCRYPT(*BF) CRCCHECK(*YES) COSNAME(FAST5) |
Receiving a library from a remote IBM i system to a local IBM i system | CFRCVLIB RMTLOCNAME(IBMISYS) TOLIB(TESTLIB2) FROMLIB(TESTLIB) IPPORT(56565) TLS(*YES)RMTUSRID(RMTUSER) RMTPWD(PSWD) MBROPT(*ALL) ALWOBJDIF(*ALL) DTACPR(*ZLIB) ZLIBLVL(*ZLIB8) ENCRYPT(*BFL) CRCCHECK(*NO) COSNAME(SLOW4) |
Sending an object from a local IBM i system to a remote IBM i system | CFSNDOBJ RMTLOCNAME(IBMISYS) OBJ(*ALL) FROMLIB(TESTLIB) TOLIB(TESTLIB2) IPPORT(58585)TLS(*TUNNEL) RMTUSRID(RMTUSER) RMTPWD(PSWD) OBJTYPE(*ALL) OPTION(*ALL) MBROPT(*ALL) ALWOBJDIF(*ALL) TGTRLS(V7R1M0) DTACPR(*ZLIB) ZLIBLVL(*ZLIB3) ENCRYPT(*RIJ) CRCCHECK(*YES) COSNAME(FAST6) |
Receiving an object from a remote IBM i system to a local IBM i system | CFRCVOBJ RMTLOCNAME(IBMISYS) OBJ(OBJNAME) TOLIB(TESTLIB2) FROMLIB(TESTLIB) IPPORT(56565)TLS(*YES) RMTUSRID(RMTUSER) RMTPWD(PSWD) OBJTYPE(*FILE) MBROPT(*ALL) ALWOBJDIF(*ALL) TGTRLS(V7R2M0) DTACPR(*ZLIB) ZLIBLVL(*ZLIB7) ENCRYPT(*NONE) CRCCHECK(*NO) COSNAME(SLOW5) |
Copyright © Cloud Software Group, Inc. All rights reserved.