# SCAN strings

**URL:** <https://techcommunity.softwareag.com/t/scan-strings/76520>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [April 9, 2008, 10:23am UTC](https://techcommunity.softwareag.com/t/scan-strings/76520 "2008-04-09T10:23:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sridevi](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@Sridevi](https://techcommunity.softwareag.com/u/Sridevi)\
**Post date:** [April 9, 2008, 10:23am UTC](https://techcommunity.softwareag.com/t/scan-strings/76520/1 "2008-04-09T10:23:28Z")

</div>

Hi,  
When i tried searching for a particular string 'VIEW OF’using SCAN in online, it worked. But in batch its not working.  
In batch, i used the command  
SCAN FUNC=S,SVAL=‘VIEW OF’,LIB=A20PROD,ABSOL=Y

The error i got is

* * *

\*\*\* SCAN has now been ABNORMALLY \*\*\*  
\*\*\* Terminated due to errors. \*\*\*

* * *

NAT9987 Natural session terminated abnormally - RC=032.

But when i ran the command as follows, the job succeeded  
SCAN FUNC=S,SVAL=VIEW,LIB=A20PROD,ABSOL=Y

I tried both single quotes and double quotes. My requirement is to scan only “VIEW OF”

Kindly help

---

<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:49pm UTC](https://techcommunity.softwareag.com/t/scan-strings/76520/2 "2021-04-02T14:49:20Z")

</div>


