I need to merge several, in casu, three,121 byte FB records into a new longer record, but the first of the three is pseudo-variable length, it contains a field in UTF8 format followed by a 0x00 byte, and the data up to this 0x00 byte needs to be used as the first part of the newly spliced record. Went through the manual, hoping to find something that would allow me to perform a truncation based of the position of any "signature" byte, like the above 0x00, but either I'm not looking at the right place, or there's nothing like this? And "Yes", I can write a REXX exec or a bit of PL/I to perform the task, but given that I'm already splicing three other files (two not containing UTF-8, and the final containing UTF-8, but at the end), I'd like to just add onther sort step to keep things consistent. (Or to do so, I could of course merge all four files in the same REXX exec or PL/I program...)
Bur suggestions using DFSORT would be appreciated. Robert -- Robert AH Prins robert(a)prino(d)org The hitchhiking grandfather <https://prino.neocities.org/index.html> Some REXX code for use on z/OS <https://prino.neocities.org/zOS/zOS-Tools.html> ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
