# Disable SCANning Input

**URL:** <https://techcommunity.softwareag.com/t/disable-scanning-input/80024>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Code-Samples, Inside-Natural-and-Performance-Hints\
**Created:** [January 28, 2009, 9:05pm UTC](https://techcommunity.softwareag.com/t/disable-scanning-input/80024 "2009-01-28T21:05:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian6](https://avatars.discourse-cdn.com/v4/letter/b/edb3f5/32.png) [@Brian6](https://techcommunity.softwareag.com/u/Brian6)\
**Post date:** [January 28, 2009, 9:05pm UTC](https://techcommunity.softwareag.com/t/disable-scanning-input/80024/1 "2009-01-28T21:05:40Z")

</div>

We have a map that will hold 42 entries for payment processing. We scan these entries in from a scanning device that reads a bar code.

Is there any way to disable input from this bar-code scanner once the map is full and the pgm is processing ?

What is happening is once the 42nd entry is scanned the pgm will automatically start posting the payments. However, I can continue to use the scanner. When the pgm is done posting the payment, the screen gets initialized and the ones I scanned during the posting process just show up. I would like to stop the ability to use the scanner when the pgm is posting. Anyone have any ideas?

Thanks.

We are on unix/Natural V6.1.1

---

<div class="post-metadata">

**Author:** ![Steve\_Robinson](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/steve_robinson/32/107_2.png) [@Steve\_Robinson](https://techcommunity.softwareag.com/u/Steve_Robinson)\
**Post date:** [January 29, 2009, 12:29am UTC](https://techcommunity.softwareag.com/t/disable-scanning-input/80024/2 "2009-01-29T00:29:58Z")

</div>

Hi Brian;

What sort of linkage ties the scanner to the computer? Computer to Natural?

steve

---

<div class="post-metadata">

**Author:** ![Brian6](https://avatars.discourse-cdn.com/v4/letter/b/edb3f5/32.png) [@Brian6](https://techcommunity.softwareag.com/u/Brian6)\
**Post date:** [January 29, 2009, 1:14am UTC](https://techcommunity.softwareag.com/t/disable-scanning-input/80024/3 "2009-01-29T01:14:13Z")

</div>

Scanner is attached via USB.

I am attached to NATURAL via a Bluezone VT session (Seagull Software)

---

<div class="post-metadata">

**Author:** ![Steve\_Robinson](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/steve_robinson/32/107_2.png) [@Steve\_Robinson](https://techcommunity.softwareag.com/u/Steve_Robinson)\
**Post date:** [January 29, 2009, 2:35am UTC](https://techcommunity.softwareag.com/t/disable-scanning-input/80024/4 "2009-01-29T02:35:34Z")

</div>

I am not familiar with the software; so the following is just a guess.

Somehow your Natural program seems to be aware that you have reached 42 entries, thus prompting the program to activate the Map.

So, if the software has the capability to turn the hardware off, you should be able to send the appropriate command.

If this is done automatically, you could employ what is called a “pre processing” rule. Specify a “dummy” layout for the Map. In the layout, code a processing rule. A processing rule for a layout is functionally a pre-processing rule for the associated map.

If the software cannot “disable” the scanner, which is busy accumulating a buffer full of scans, you could write code in the pre-processing rule to bypass the extra scans.

steve

---

<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, 2:51pm UTC](https://techcommunity.softwareag.com/t/disable-scanning-input/80024/5 "2021-04-02T14:51:25Z")

</div>


