In the code posted, the qwe field is NOT at the end of the record - it is using some of the filler. . .then add the qwe field at the end of each record.
It will if coded correctly.will it work or not.
What has been posted is the same length. Again, if you change the definition(s), then the code might need to change, but it will still work if coded correctly.also if the length of ps and the ksds file is different.