It is possible to create an import file, for example a comma delimited file for import to Excel, in the IFS from an iSeries physical file (database table) as follows:
First of all create the IFS file with the correct attributes by copying any source file as follows:
CPYTOSTMF FROMMBR('/qsys.lib/anylib.lib/anysrcpf.file/anymbr.mbr') TOSTMF('/lancasp/import.txt') STMFCODPAG(*PCASCII)
The use the CPYTOIMPF command to copy the physical file data into the stream file. For example
CPYTOIMPF FROMFILE(NCMAZDAW/NCDCRQP) TOSTMF('/lancasp/import.txt') MBROPT(*REPLACE) RCDDLM(*CR)
Comments (0)
You don't have permission to comment on this page.