We have a strange problem relating to emails with attached csv files. If we run an agent to detach the file and process it on the iSeries using CPYFRMIMPF we get an error 9 and 4. If we detach the file manually the process works OK. The agent runs under user id QNOTES. What we have found is that the CCSID from AGENT DETACH IS 37 - FAILS CCSID from MANUAL DETACH IS 437 - OK Can anybody throw any light on this ? Thanks George