I am not a AS400 developer. I work on an RS6000 (Unix) but we use IFS (NFS) to exchange interface files. Has anyone on V5R4 experienced having the records, in a large file, be out of order when a file from a libray is copied to an IFS directory? I am experiencing this and have been told that IBM did make a change about 2 yrs ago to speed things up and it initially had a problem and was patched. The change, as explained to me, is, with large files, the data transfer protocal will automatically switch to transfer blocks instead of bytes. That's all fine with me. But why would they not put the file back together in the proper sequence? Please help point us in the right direction or help me ask my engineers better questions?
Thanks
daves
Software/Hardware used:
ASKED:
December 26, 2007 9:01 PM
UPDATED:
March 9, 2010 7:33 AM
My experience with the CPYF is that it copies based on the primary keys in the order of the SENDING file. If there are no keys, it uses the Relative Record Number (RRN). Maybe it works the same with CPYTOIMPF?
One potential complication is that CPYTOIMPF is based internally on SQL. (You can see evidence running under debug.) SQL doesn’t guarantee an order without an ORDER BY clause. And there is no access to ORDER BY with CPYTOIMPF (AFAIK).
Tom