One small query. Has this JCL been built considering one of the inp file as VB file right ? Also the output merge record shld be a VB record. It looks challenging to handle VB file in my case.
the format of the file being overlaid is pretty irrelevant for a copy operation, this might not be the case, but You should take into account the presence of short records the overlay might fail.
cheers enrico When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser, so that I am sure that the information requested can be reached with a very small effort
As long as there is no attempt to overwrite the first four bytes of the record, where the RDW lives, is is nothing special about an OVERLAY with regards to variable-length records.
The other two-step solution is to generate a symbol from your fixed-length record, and just use the generated symbol in the second step.