# Get a apostrophe in a file

**URL:** <https://techcommunity.softwareag.com/t/get-a-apostrophe-in-a-file/61609>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [October 24, 2006, 9:21pm UTC](https://techcommunity.softwareag.com/t/get-a-apostrophe-in-a-file/61609 "2006-10-24T21:21:37Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nax](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@Nax](https://techcommunity.softwareag.com/u/Nax)\
**Post date:** [October 24, 2006, 9:21pm UTC](https://techcommunity.softwareag.com/t/get-a-apostrophe-in-a-file/61609/1 "2006-10-24T21:21:37Z")

</div>

Hi all!

I tried to bring an " (apostrophe) with a WRITE statement into a WORK FILE.

But i failed. I did several ways but there was no way working.

Do anybody know how?? Or is it impossible?

tx,  
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:** [October 24, 2006, 9:33pm UTC](https://techcommunity.softwareag.com/t/get-a-apostrophe-in-a-file/61609/2 "2006-10-24T21:33:18Z")

</div>

On EBCDIC Systems use H’7F’ and on ASCII Systems use H’22’

Greetings  
Sascha Wiegandt

---

<div class="post-metadata">

**Author:** ![Wilfried\_B](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/wilfried_b/32/83_2.png) [@Wilfried\_B](https://techcommunity.softwareag.com/u/Wilfried_B)\
**Post date:** [October 24, 2006, 10:12pm UTC](https://techcommunity.softwareag.com/t/get-a-apostrophe-in-a-file/61609/3 "2006-10-24T22:12:40Z")

</div>

With NAT4 and above: Try the compiler directive OPTION TQMARK=OFF as in:

```auto

OPTION TQMARK=OFF
WRITE WORK FILE 'Hello, world, this "is" a test'
OPTION TQMARK=ON
```

By default, this option is set to ON! (What a nonsense!) :?  
Alternatively you can use COMPOPT to set this option globally. But what do you do, if someone else compiles the program without this setting?

I won’t follow the suggestion of Sascha, because you implement OS-dependency where not necessary.

---

<div class="post-metadata">

**Author:** ![Nax](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@Nax](https://techcommunity.softwareag.com/u/Nax)\
**Post date:** [October 25, 2006, 11:59am UTC](https://techcommunity.softwareag.com/t/get-a-apostrophe-in-a-file/61609/4 "2006-10-25T11:59:46Z")

</div>

Cheers!

Your hints worked great.

tx,  
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:** [October 25, 2006, 4:42pm UTC](https://techcommunity.softwareag.com/t/get-a-apostrophe-in-a-file/61609/5 "2006-10-25T16:42:03Z")

</div>

[quote="Wilfried B

---

<div class="post-metadata">

**Author:** ![Nax](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@Nax](https://techcommunity.softwareag.com/u/Nax)\
**Post date:** [October 25, 2006, 4:50pm UTC](https://techcommunity.softwareag.com/t/get-a-apostrophe-in-a-file/61609/6 "2006-10-25T16:50:36Z")

</div>

Ah … in Wilfried sample is a little syntax error.

I used:

OPTIONS TQMARK=OFF

This acted well!

greets

---

<div class="post-metadata">

**Author:** ![Helmut\_Spichtinger](https://avatars.discourse-cdn.com/v4/letter/h/e0b2c6/32.png) [@Helmut\_Spichtinger](https://techcommunity.softwareag.com/u/Helmut_Spichtinger)\
**Post date:** [October 25, 2006, 4:52pm UTC](https://techcommunity.softwareag.com/t/get-a-apostrophe-in-a-file/61609/7 "2006-10-25T16:52:14Z")

</div>

[quote=“Sascha Wiegandt”]  
[quote="Wilfried B

---

<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:** [October 25, 2006, 6:19pm UTC](https://techcommunity.softwareag.com/t/get-a-apostrophe-in-a-file/61609/8 "2006-10-25T18:19:03Z")

</div>

I tried, but i have to disable V31COMP 😉 But the Onlinehelp from SPoD is very funny for the OPTIONS Statement :lol: And a ‘HELP OPTIONS’ at BS2 bring up that it only works with Natural Optimizer Compiler.

---

<div class="post-metadata">

**Author:** ![Wilfried\_B](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/wilfried_b/32/83_2.png) [@Wilfried\_B](https://techcommunity.softwareag.com/u/Wilfried_B)\
**Post date:** [October 26, 2006, 7:01pm UTC](https://techcommunity.softwareag.com/t/get-a-apostrophe-in-a-file/61609/9 "2006-10-26T19:01:00Z")

</div>

Oh, please forgive my carelessness. Most syntax expressions in Natural allow singular and plural (VALUE and VALUES for example). Why not this?

And, shame on me, this OPTIONS option will work on Open Systems from 6.2.2 on which I didn’t mention (isn’t this a mainframe forum?). In prior versions the documentation for OPTIONS really was a big joke.

I always get angry about extensions for one platform that are not available on other platforms, even if there is a semantical equivalent on both platforms (e.g. EXAMINE var FROM start TO end… vs. EXAMINE SUBSTR(var,start,end - start+1))

---

<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:40pm UTC](https://techcommunity.softwareag.com/t/get-a-apostrophe-in-a-file/61609/10 "2021-04-02T14:40:54Z")

</div>


