Mukund
Member
Hi,
In one of my applications where we interface JDE with an external application, we gather the data from JDE files and populate a PF in a format that the downstream application understands and then do a simple CPYTOIMPF operation in a CL program to write it into a stream file on IFS as an .XML file from where the downstream application picks up the information.
However, I noticed that the CPYTOIMPF command does not work consistently. Sometimes the data format in the XML file and the PF are identical however a few times the format in the XML file go haywire. I use the below command
CPYTOIMPF FROMFILE(PO204F) TOSTMF(&IFSPATH) MBROPT(*REPLACE) STMFCODPAG(*PCASCII) RCMDDLM(*LF) DTAFMT(*FIXED) STRDLM(*NONE) FLDDLM(' ') DATFMT(*ISO)
The AS/400 version we use is V5R3.
Has anybody in this forum come across a similar problem? If yes could you please share your ideas on how you resolved it.
Thanks,
Mukund
In one of my applications where we interface JDE with an external application, we gather the data from JDE files and populate a PF in a format that the downstream application understands and then do a simple CPYTOIMPF operation in a CL program to write it into a stream file on IFS as an .XML file from where the downstream application picks up the information.
However, I noticed that the CPYTOIMPF command does not work consistently. Sometimes the data format in the XML file and the PF are identical however a few times the format in the XML file go haywire. I use the below command
CPYTOIMPF FROMFILE(PO204F) TOSTMF(&IFSPATH) MBROPT(*REPLACE) STMFCODPAG(*PCASCII) RCMDDLM(*LF) DTAFMT(*FIXED) STRDLM(*NONE) FLDDLM(' ') DATFMT(*ISO)
The AS/400 version we use is V5R3.
Has anybody in this forum come across a similar problem? If yes could you please share your ideas on how you resolved it.
Thanks,
Mukund