Batch process with control number

Does anyone know how to number the control # globally?

We need to provide the global control number on the batched EDI document.
We say, with the same sender/Receiver pair, the number should be provided sequentialize and can be managed via EDI control number table.
Such as
UNB+UNOA:1+Sender:ZZ+ReceiverB+060110:0416+78++INVOIC’
UNB+UNOA:1+Sender:ZZ+ReceiverB+060111:1419+79++INVOIC’
UNB+UNOA:1+Sender:ZZ+ReceiverB+060112:0716+80++ORDRSP’
UNB+UNOA:1+Sender:ZZ+ReceiverB+060114:1419+81++INVOIC’

If we setup the oneBatchQueue to be “singleOutput”, the control number always starts from one. Not an acceptable solution for us.

Any idea on this? Thanks.

The oneBatchQueue parameter is not the input that controls how control numbers are generated. Set the “controlNumber” input to “fromTable” and you will get the desired behavior. The EDI docs cover this in detail.