# How to swtich from Reporting mode to Structure Mode?

**URL:** <https://techcommunity.softwareag.com/t/how-to-swtich-from-reporting-mode-to-structure-mode/199710>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Linux\
**Created:** [June 17, 2018, 4:40pm UTC](https://techcommunity.softwareag.com/t/how-to-swtich-from-reporting-mode-to-structure-mode/199710 "2018-06-17T16:40:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jolly\_Mongia2](https://avatars.discourse-cdn.com/v4/letter/j/8c91f0/32.png) [@Jolly\_Mongia2](https://techcommunity.softwareag.com/u/Jolly_Mongia2)\
**Post date:** [June 17, 2018, 4:40pm UTC](https://techcommunity.softwareag.com/t/how-to-swtich-from-reporting-mode-to-structure-mode/199710/1 "2018-06-17T16:40:49Z")

</div>

Hello All,  
I wrote a IF condition in my code and ended it with “END-IF” statement. But I received following error:  
NAT0610 This statement is not permitted in reporting mode.

Please let me know how to switch to structure mode, so that I could run the IF statement.

Best Regards,  
Jolly.

---

<div class="post-metadata">

**Author:** ![Jolly\_Mongia2](https://avatars.discourse-cdn.com/v4/letter/j/8c91f0/32.png) [@Jolly\_Mongia2](https://techcommunity.softwareag.com/u/Jolly_Mongia2)\
**Post date:** [June 17, 2018, 4:47pm UTC](https://techcommunity.softwareag.com/t/how-to-swtich-from-reporting-mode-to-structure-mode/199710/2 "2018-06-17T16:47:42Z")

</div>

I have figured out that we need to write the following command to go to Structure mode:

GLOBALS SM = ON

But where in the code do I need to write it?

If someone could share a code snippet to display this statement?

Regards,  
Jolly.

---

<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:** [June 17, 2018, 6:10pm UTC](https://techcommunity.softwareag.com/t/how-to-swtich-from-reporting-mode-to-structure-mode/199710/3 "2018-06-17T18:10:00Z")

</div>

On PC Natural, there is an icon which allows you to toggle back and forth between Report and Structured Modes.

On a mainframe, you can type your SET GLOBALS at a NEXT prompt, or the command line.

---

<div class="post-metadata">

**Author:** ![Jolly\_Mongia1](https://avatars.discourse-cdn.com/v4/letter/j/76d3ee/32.png) [@Jolly\_Mongia1](https://techcommunity.softwareag.com/u/Jolly_Mongia1)\
**Post date:** [June 17, 2018, 6:53pm UTC](https://techcommunity.softwareag.com/t/how-to-swtich-from-reporting-mode-to-structure-mode/199710/4 "2018-06-17T18:53:17Z")

</div>

I tried to find the option on PC to change the programming mode, but I could not find it. Could you please attach an image showing the symbol location or mention the path under which I could find that option?

---

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [June 18, 2018, 6:04am UTC](https://techcommunity.softwareag.com/t/how-to-swtich-from-reporting-mode-to-structure-mode/199710/5 "2018-06-18T06:04:26Z")

</div>

Set Structured Mode with the command

```auto
GLOBALS SM=T
```

You may not leave spaces around the equal sign.

Set Reporting Mode with the command

```auto
GLOBALS SM=F
```

Natural commands are entered in the Command prompt found at the bottom left of Natural Studio (the development environment within Natural for Windows).

If you don’t have a Command prompt, press Alt+3 or press View on the menu bar and then check Command Line.

To find the structured mode icon (SM on/off), press View on the menu bar, then Toolbars, then Compiler Options. The SM icon should be the first on the left.

---

<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, 3:40pm UTC](https://techcommunity.softwareag.com/t/how-to-swtich-from-reporting-mode-to-structure-mode/199710/6 "2021-04-02T15:40:51Z")

</div>


