# using scan results in program

**URL:** <https://techcommunity.softwareag.com/t/using-scan-results-in-program/91583>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [October 22, 2009, 12:17pm UTC](https://techcommunity.softwareag.com/t/using-scan-results-in-program/91583 "2009-10-22T12:17:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafi](https://avatars.discourse-cdn.com/v4/letter/r/779978/32.png) [@rafi](https://techcommunity.softwareag.com/u/rafi)\
**Post date:** [October 22, 2009, 12:17pm UTC](https://techcommunity.softwareag.com/t/using-scan-results-in-program/91583/1 "2009-10-22T12:17:26Z")

</div>

hi

i need to run the scan utility from a program, and do some more processing with the results.  
how can i run the scan utility from a program ?

thanks in advance

---

<div class="post-metadata">

**Author:** ![Rainer\_Koch](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@Rainer\_Koch](https://techcommunity.softwareag.com/u/Rainer_Koch)\
**Post date:** [October 23, 2009, 12:44pm UTC](https://techcommunity.softwareag.com/t/using-scan-results-in-program/91583/2 "2009-10-23T12:44:45Z")

</div>

You can do this in batch by placing the SCAN output into a file and then process the file’s contents in a later job step.  
As an alternative, you could use the user API USR1057N from library SYSEXT to read a program’s source into an array and then do the scanning by yourself in the calling Natural program, e.g. by means of using EXAMINE.

---

<div class="post-metadata">

**Author:** ![rafi](https://avatars.discourse-cdn.com/v4/letter/r/779978/32.png) [@rafi](https://techcommunity.softwareag.com/u/rafi)\
**Post date:** [October 25, 2009, 8:53pm UTC](https://techcommunity.softwareag.com/t/using-scan-results-in-program/91583/3 "2009-10-25T20:53:20Z")

</div>

thanks.  
i knew about those two options.  
do you now the differences cpu wise between the two ?

---

<div class="post-metadata">

**Author:** ![Rainer\_Koch](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@Rainer\_Koch](https://techcommunity.softwareag.com/u/Rainer_Koch)\
**Post date:** [October 26, 2009, 12:32pm UTC](https://techcommunity.softwareag.com/t/using-scan-results-in-program/91583/4 "2009-10-26T12:32:08Z")

</div>

Sorry, I don’t have any comparisons available.

---

<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:57pm UTC](https://techcommunity.softwareag.com/t/using-scan-results-in-program/91583/5 "2021-04-02T14:57:40Z")

</div>


