# Batch process with control number

**URL:** <https://techcommunity.softwareag.com/t/batch-process-with-control-number/108831>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [March 2, 2006, 5:05pm UTC](https://techcommunity.softwareag.com/t/batch-process-with-control-number/108831 "2006-03-02T17:05:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![juliana](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@juliana](https://techcommunity.softwareag.com/u/juliana)\
**Post date:** [March 2, 2006, 5:05pm UTC](https://techcommunity.softwareag.com/t/batch-process-with-control-number/108831/1 "2006-03-02T17:05:35Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![reamon](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@reamon](https://techcommunity.softwareag.com/u/reamon)\
**Post date:** [March 3, 2006, 11:24pm UTC](https://techcommunity.softwareag.com/t/batch-process-with-control-number/108831/2 "2006-03-03T23:24:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:05pm UTC](https://techcommunity.softwareag.com/t/batch-process-with-control-number/108831/3 "2021-04-02T15:05:24Z")

</div>


