How to copy a variable length file into an another file (it is also a variable length file) and also add 2 fields at the end of output file.
I have used Sort with OUTREC with different options. I got errors like SHORT RECORD, RDW not included etc
Joined: 14 Mar 2007 Posts: 8593 Location: Back in jolly old England
Anuj, Methinks the problem is appending the PD field at the end of the record.
Will copy the RDW and the variable part of the record to output. I have searched without success and might even try a quick google on how to append the additional field onto the end of a variable length record.
I have had a play with this, again without success using DFSORT.
As this is posted in the JCL forum I assume that the product is SYNCSORT rather than DFSORT.