# Terminal emulator

**URL:** <https://techcommunity.softwareag.com/t/terminal-emulator/93035>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, NaturalONE, Natural-for-AJAX\
**Created:** [March 11, 2010, 11:29pm UTC](https://techcommunity.softwareag.com/t/terminal-emulator/93035 "2010-03-11T23:29:15Z")\
**Posts on this page:** 9\
**Page:** 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:** [March 11, 2010, 11:29pm UTC](https://techcommunity.softwareag.com/t/terminal-emulator/93035/1 "2010-03-11T23:29:15Z")

</div>

Has anyone been able to create a session configuration in SESSIONS.XML to take one to the command line of natural?

What we would like to do is to be able to log on and run various natural commands in an emulator session (like one would when logging on on the usual way in a 3270 session for example).

If I do not specify any parm the session logs and and terminates immediately. That makes sense to me since we do not specify what it should do when it has logged on. I have tried using mainmenu etc, but still not able to get a command line session emulated.

Any thoughs?

Thanks

Demos

---

<div class="post-metadata">

**Author:** ![Klaus\_Sponagel](https://avatars.discourse-cdn.com/v4/letter/k/3bc359/32.png) [@Klaus\_Sponagel](https://techcommunity.softwareag.com/u/Klaus_Sponagel)\
**Post date:** [March 12, 2010, 2:33pm UTC](https://techcommunity.softwareag.com/t/terminal-emulator/93035/2 "2010-03-12T14:33:45Z")

</div>

NWO is to run Natural applications in production.  
The Natural NEXT prompt or the Natural Mainmenu, however, is for development. For that reason NWO avoids to get on that level and immediately disconnects as soon as the application ends.

So if you require the NEXT prompt you should review if NWO is the right tool for that task. NFE or NaturalONE are the appripriate tools for developing NJX applications.

Anyway, what you can do is to wrap your task (multiple Natural commands) into an application. That is to have a program that runs as a main program and executes the list of commands using the Natural STACK command.

Best regards  
Klaus

---

<div class="post-metadata">

**Author:** ![Norman\_Halter](https://avatars.discourse-cdn.com/v4/letter/n/a587f6/32.png) [@Norman\_Halter](https://techcommunity.softwareag.com/u/Norman_Halter)\
**Post date:** [March 12, 2010, 2:47pm UTC](https://techcommunity.softwareag.com/t/terminal-emulator/93035/3 "2010-03-12T14:47:42Z")

</div>

When you are running Natural on Unix you can use the following parameter:  
stack=(edit)

This opens the Natural source editor from Unix. You can start and edit programs from there. But this is not an officially supported feature and it is not working well in NJX/NWO mode. As soon as you enter a wrong command, you are kicked out and there is no list command.

If you are running Natural on mainframe, you can enter ‘e’ as Natural application to open a Natural editor with command line prompt.

---

<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:** [March 12, 2010, 9:06pm UTC](https://techcommunity.softwareag.com/t/terminal-emulator/93035/4 "2010-03-12T21:06:10Z")

</div>

Thanks for your responses. The edit feature works ok in the MF environment too (thanks Norman).

We were just hoping to have a command line session for the systems programmer to go into to be able to check on various settings in NWO environment. We are not planning on using it for development.

Regards

Demos

---

<div class="post-metadata">

**Author:** ![Norman\_Halter](https://avatars.discourse-cdn.com/v4/letter/n/a587f6/32.png) [@Norman\_Halter](https://techcommunity.softwareag.com/u/Norman_Halter)\
**Post date:** [March 31, 2010, 9:52pm UTC](https://techcommunity.softwareag.com/t/terminal-emulator/93035/5 "2010-03-31T21:52:51Z")

</div>

I found a solution for your problem. You can use “stacker” as Natural program. In that case you just get a command line prompt. This works for mainframe Natural only.

---

<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:** [March 31, 2010, 11:50pm UTC](https://techcommunity.softwareag.com/t/terminal-emulator/93035/6 "2010-03-31T23:50:27Z")

</div>

Thanks Norman. Is the stacker program the one that comes with Con-nect?

---

<div class="post-metadata">

**Author:** ![Klaus\_Sponagel](https://avatars.discourse-cdn.com/v4/letter/k/3bc359/32.png) [@Klaus\_Sponagel](https://techcommunity.softwareag.com/u/Klaus_Sponagel)\
**Post date:** [April 7, 2010, 4:09pm UTC](https://techcommunity.softwareag.com/t/terminal-emulator/93035/7 "2010-04-07T16:09:11Z")

</div>

No, STACKER is nothing Mainframe specific. It is just a test program for tests in NWO. The source is:

```auto

INPUT 'STACK:' #A(A60) (AD=MIT)   
STACK TOP COMMAND 'STACKER'       
STACK TOP COMMAND #A              
END                               
```

Klaus

---

<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 7, 2010, 5:55pm UTC](https://techcommunity.softwareag.com/t/terminal-emulator/93035/8 "2010-04-07T17:55:08Z")

</div>

Hi Klaus,

The code works for what we need.

Thanks for your help.

Demos

---

<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:58pm UTC](https://techcommunity.softwareag.com/t/terminal-emulator/93035/9 "2021-04-02T14:58:11Z")

</div>


