I have a physical file (PF) present in my dev library, and I am struggling to copy the physical file to IFS (Integrated file system).
Sorry, you do not have permission to ask a question, You must login to ask a question.
Sorry, you do not have permission to ask a question.
Simply, we can copy the physical files to ifs by using the as400 command named
CPYTOIMPF
(Copy to import file). below are theCPYTOIMPF
command syntax and parameters to be passed to copy the physical file to ifs.CPYTOIMPF FROMFILE(library/filename) TOSTMF('/path/filename')
RCDDLM(*LFCR) STRDLM(*NONE) ADDCOLNAM(*SYS)
here
cpytoimpf
command parameter fromfile received value filename and library name where the file is located.TOSTMF
parameter received the value/path/filename
where the path can be/home/developer
user home path let’s say and the filename is the file the user wants to keep.RCDDLM
is*LFCR
(line feed and carriage return)STRDLM(*NONE)
, by default it’s*DBLQUOTE
andADDCOLNAM(*SYS)
, it is*NONE
, and if we want to keep the column names as well from the physical file in the ifs file then we can provide value as either*SYS
or*SQL
to either provide system name or SQL long names.