I am wondering which solution is the best regarding the performance (cpu friendly)
Task to do: delete the DG1 segment in A01,A08,A011 but I got the A03 too (who do not contain the DG1 segment)
Solution-1: tcl proc in the inbound thread
– pros:
— the tcl interpet will compile the tcl proc so I will gain time
– cons:
— parse the message, remove the DG1 segment and rebuild the new message
— waste time on the A03
Solution-2: create a variant and remove the DG1 segment, I do a bulkcopy on top on my xlate
– pros:
— do not manage the trouble to remove the segment, the variant will do it for me
— no waste of time for the A03
– cons:
— ?
thank you in advance your help
Yves