I Have a found a behavior in the CPYTOIMPF.
1. I Create a file that must be send as atachment
2. I Create a file with 1 record containing all field headers (with semicol.) Like Number;Description;Price;Qty
3. Copy the headers record to the IFS with CPYTOIMPF TOCCSID(*PCASCII)
4. Copy the other file to the same IFS file with CPYTOIMPF TOCCSID(*PCASCII)
After step 3 the IFS file contains a the headers and looks normal.
After step 4 the records are added, but the line with headers is scrambled
Ö £ ¥ ^ÆÔâ@å £ @ ^Ö¥ ¢£^Ò £ Ö ¢
the "^" is probably the original ";"
CCSID *STDASCII has the same problem
I'm out of ideas :-)