On 3/15/2023 10:49 AM, John P. Hartmann wrote: > If we are speaking two records, wouldn't SPEC be able to do what you want?
Yes, since the lists are joined into single records, I was able to use SPECS to swap the order and then CHOP|SPLIT|JUXTAPOSE to split up the lists and juxtapose each item with the container. I suppose I could have skipped both JOIN and CHOP by using SPECS to write the records to separate files in swapped order: specs a: 1-* 1 . read 1-* 1 write outstream 1 id a 1 I was really thinking of the more general case where the list is already in separate records to start with. I guess the thing to do would be to inject a null record into the list after each container record, and use BUFFER 1 to buffer the list for each container: (end /) ... (containers here) | next: chop not 00-ff | join: juxtapose | ... / ... (lists here, careful to avoid null records) | addnext: faninany | buffer 1 | locate | join: / next: | addnext: To tolerate null list items, I guess I'd have to INSERT a character and CHOP it off afterward. ¬R
