# How to set Programming mode runtime.

**URL:** <https://techcommunity.softwareag.com/t/how-to-set-programming-mode-runtime/80767>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-News-and-General-Topics\
**Created:** [April 22, 2009, 4:56pm UTC](https://techcommunity.softwareag.com/t/how-to-set-programming-mode-runtime/80767 "2009-04-22T16:56:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Atulrukmangad](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@Atulrukmangad](https://techcommunity.softwareag.com/u/Atulrukmangad)\
**Post date:** [April 22, 2009, 4:56pm UTC](https://techcommunity.softwareag.com/t/how-to-set-programming-mode-runtime/80767/1 "2009-04-22T16:56:43Z")

</div>

Hi,  
I have to generate a standard helproutine by executing a program.  
i am using user exit USR2014N to open a new session and writting the help routine.  
Also i am using USR0210N to catalog it, where the problem comes.  
The default mode for natural is Reporting and my routine is in Structured thus not cataloging it.  
I have tried SET GLOBLALS SM=ON and STACK TOP COMMAND but it doesn’t work out.  
I can’t even use USR1002N to restore the SM as the save point SM would also be reporting.

Please suggest some solution to the problem.

Thanks  
Atul

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [April 27, 2009, 1:08pm UTC](https://techcommunity.softwareag.com/t/how-to-set-programming-mode-runtime/80767/2 "2009-04-27T13:08:15Z")

</div>

stack top command works on my natural-environment.

my program:

```auto
stack top command 'globals sm=on'
end
```

Of course you can place it on the stack during the startup of natural:

```auto
natural bp=... parm=... etid=$$ udb=12 stack='globals sm=on'
```

---

<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:** [April 28, 2009, 4:19pm UTC](https://techcommunity.softwareag.com/t/how-to-set-programming-mode-runtime/80767/3 "2009-04-28T16:19:06Z")

</div>

There was an extensive thread on this question last week on sag-l.

steve

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [April 28, 2009, 4:36pm UTC](https://techcommunity.softwareag.com/t/how-to-set-programming-mode-runtime/80767/4 "2009-04-28T16:36:10Z")

</div>

Sorry for my stupid question: What is “sag-l”?

---

<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:** [April 28, 2009, 7:31pm UTC](https://techcommunity.softwareag.com/t/how-to-set-programming-mode-runtime/80767/5 "2009-04-28T19:31:50Z")

</div>

Not a stupid question at all.

SAG-L is a technical list run by the University of Arkansas. It has been around longer than the developers forum. One disadvantage, SAG employees are not participants. One advantage, 1000 quite active members.

Google SAG-L. You will find a link to their main page which details how to join (free), participate, etc.

steve

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [April 28, 2009, 7:46pm UTC](https://techcommunity.softwareag.com/t/how-to-set-programming-mode-runtime/80767/6 "2009-04-28T19:46:49Z")

</div>

Thanks. So this is the answer to my question: [http://www.uark.edu/sag-l/faq.html](http://www.uark.edu/sag-l/faq.html)

---

<div class="post-metadata">

**Author:** ![Atulrukmangad](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@Atulrukmangad](https://techcommunity.softwareag.com/u/Atulrukmangad)\
**Post date:** [May 3, 2009, 3:18pm UTC](https://techcommunity.softwareag.com/t/how-to-set-programming-mode-runtime/80767/7 "2009-05-03T15:18:15Z")

</div>

Hi All,  
Thanks for your suggestions. I have met the solution though not that much convincing. I am reading a Dummy program which is written in structure mode and then clearing the editor, writting the routine and cataloging. it works fine as of now. Would like to post again in case i get any other better means.

Thanks  
Atul

---

<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:51pm UTC](https://techcommunity.softwareag.com/t/how-to-set-programming-mode-runtime/80767/8 "2021-04-02T14:51:50Z")

</div>


