I’m having a bit of difficulty understanding process and problem
1. Pgm RPG1 – creates PF
2. Pgm RPG2 – reads PF and writes flat file with ‘~’ seperators
3. CPYTOPCD copies flat file but last record has an unexpected value.
1. Are all other rows in the file exactly like the flat file?
2. Is there a row in the flat file that represents the last row of the output file or is the row of the output file extra?
3. Can you tell us or show us what the “wild” chararcter looks like?