I'm back from vacation tomorrow. I just had to go through 4 pages of posts on this topic! But when I look at your FIRST POST, the positions of the keys and data you specify in file2 DO NOT MATCH YOUR EXAMPLE. You say the second key starts at position 24, but it appears to start in position 18. You say you want the data starting at position 23 to end, but that doesn't seem to match what you show for output which appears to start at position 21.
If you want my help, please start a NEW topic and show your input and output records using ubb code tags. Give all of the necessary information. Do NOT try to bold anything. Just concentrate on getting the example records and descriptions of the positions right so I can see what you really want to do. If you want to send me the examples as plain text (.txt) files offline, that's fine (email@example.com