KB Article #67865
How to transfer files between OS/400 IFS and Unix/Windows platforms?
-- SEND
-- RECEIVE
-- IFS
How to set file models (CFTSEND, CFTRECV) in the CFT configuration, in order to be up transfering files between OS/400 IFS and Unix/Windows platforms?
Resolution
For files such as PDF, XML etc... use Binary FCODE (both side) and no FTYPE
For sequential text files, use FCODE=ASCII (both side) and FTYPE="T" on UNIX/Windows side
IFS is like Unix.
Samples bellow to send files from OS/400 IFS to Unix/ Windows.
CFTSEND ID = 'FICIFS3', /* CTSEND define on the CFT/400 side */
FCODE = 'BINARY',
FNAME="/home/cfalbane/copilot/wwwroot/guiextensions/plugin.xml"
CFTRECV ID = 'FICIFS3', /* CFTRECV defined on a Unix or Windows box*/
FCODE = 'BINARY',
FNAME = 'C:\test\recv\&idt.xml',
CFTSEND ID = 'FICIFS', /* text files sent from IFS */
FCODE = 'ASCII',
FNAME = '/home/send/test.txt/',
FRECFM = 'V'
CFTRECV ID = 'FICIFS', /*on Windows */
fcode = ASCII,
ftype = T,
fname = C:\Test\recv\TESTIFS.txt,
frecfm = V