# Double-quote marks on output fields...

**URL:** <https://techcommunity.softwareag.com/t/double-quote-marks-on-output-fields/75450>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [September 28, 2007, 6:23pm UTC](https://techcommunity.softwareag.com/t/double-quote-marks-on-output-fields/75450 "2007-09-28T18:23:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![oettb](https://avatars.discourse-cdn.com/v4/letter/o/e495f1/32.png) [@oettb](https://techcommunity.softwareag.com/u/oettb)\
**Post date:** [September 28, 2007, 6:23pm UTC](https://techcommunity.softwareag.com/t/double-quote-marks-on-output-fields/75450/1 "2007-09-28T18:23:26Z")

</div>

Anybody know how to write output in which the " is not transformed into a ’ :?:

Thanks for any responses.

---

<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:** [September 28, 2007, 7:10pm UTC](https://techcommunity.softwareag.com/t/double-quote-marks-on-output-fields/75450/2 "2007-09-28T19:10:38Z")

</div>

Turn the parameter TQ to OFF

steve

---

<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:** [September 28, 2007, 7:20pm UTC](https://techcommunity.softwareag.com/t/double-quote-marks-on-output-fields/75450/3 "2007-09-28T19:20:58Z")

</div>

It depends on the value of the compiler option TQMARK, how Natural interprets the " (double quotation mark). Issue the command COMPOPT in a command line and you will see your compiler options.

TQMARK=ON: Each double quotation mark within a text constant is output as a single apostrophe. This is the default value.

TQMARK=OFF: Double quotation marks within a text constant are not translated; they are output as double quotation marks.

If the compiler option should be applied to the whole program:

```auto
OPTIONS TQMARK=OFF                      
DEFINE DATA LOCAL                       
1 #STRING (A10) INIT <'ABC"DEF'>  
END-DEFINE                              
*                                       
WRITE #STRING                           
*                                       
END                                     
```

Another possibilty is to translate the single apostrophe into a Double quotation mark:

```auto
DEFINE DATA LOCAL                        
1 #STRING (A10) INIT <'ABC"DEF'>   
END-DEFINE                               
*                                        
WRITE #STRING                            
EXAMINE #STRING FOR H'7D' REPLACE H'7F'  
WRITE #STRING                            
*                                        
END                                      
```

If you want to output a text constant, you can set the compiler option to OFF and ON within the code:

```auto
OPTIONS TQMARK=OFF                                            
WRITE 'This is a textconstant with " (double quotation mark)' 
OPTIONS TQMARK=ON                                             
WRITE 'This is a textconstant with " (double quotation mark)' 
OPTIONS TQMARK=OFF                                            
WRITE 'This is a textconstant with " (double quotation mark)' 
END                                                           
```

---

<div class="post-metadata">

**Author:** ![oettb](https://avatars.discourse-cdn.com/v4/letter/o/e495f1/32.png) [@oettb](https://techcommunity.softwareag.com/u/oettb)\
**Post date:** [September 28, 2007, 7:28pm UTC](https://techcommunity.softwareag.com/t/double-quote-marks-on-output-fields/75450/4 "2007-09-28T19:28:29Z")

</div>

Thanks to both of you, it really helped me out…and the bank will be happy too. 🙂

---

<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:48pm UTC](https://techcommunity.softwareag.com/t/double-quote-marks-on-output-fields/75450/5 "2021-04-02T14:48:47Z")

</div>


