# TSO from within Natural/TSO

**URL:** <https://techcommunity.softwareag.com/t/tso-from-within-natural-tso/100880>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes, Natural-Database-and-TP-Monitor-Interfaces-on-Mainframes, Natural-on-Windows-Unix\
**Created:** [July 3, 2012, 10:54am UTC](https://techcommunity.softwareag.com/t/tso-from-within-natural-tso/100880 "2012-07-03T10:54:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chaim\_Handler](https://avatars.discourse-cdn.com/v4/letter/c/2bfe46/32.png) [@Chaim\_Handler](https://techcommunity.softwareag.com/u/Chaim_Handler)\
**Post date:** [July 3, 2012, 10:54am UTC](https://techcommunity.softwareag.com/t/tso-from-within-natural-tso/100880/1 "2012-07-03T10:54:13Z")

</div>

Searching the web I found a program called TSOCMD which opens a tso edit window from natural bay doing a call to ISPLINK. Can anyone tell me how to open the “ISPF Primary Option Menu” instead?

your assistance is greatly appreciated  
chaim handler  
iteam

---

<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:** [July 3, 2012, 8:57pm UTC](https://techcommunity.softwareag.com/t/tso-from-within-natural-tso/100880/2 "2012-07-03T20:57:23Z")

</div>

That won’t work, I’m afraid.

You will find a Natural program called TSO in library SYSEXTP, but when you try to invoke  
ISPSTART thru this you will receive

ISPI007 ISPF command not allowed. You are already under ISPF

---

<div class="post-metadata">

**Author:** ![Thomas\_Mathew3](https://avatars.discourse-cdn.com/v4/letter/t/838e76/32.png) [@Thomas\_Mathew3](https://techcommunity.softwareag.com/u/Thomas_Mathew3)\
**Post date:** [April 16, 2015, 2:15pm UTC](https://techcommunity.softwareag.com/t/tso-from-within-natural-tso/100880/3 "2015-04-16T14:15:15Z")

</div>

Use the following Natural PGM:

RESET #FUNCTION(A8) #BUFFER-LEN(B4) #BUFFER(A244)  
#SERVICE(A8) #REFRESH(A8) #PARM(A10) #BUF1(A20) #BUF2(A1)  
#BUF3(A13)  
\*  
FORMAT ZP=OFF SG=OFF LS=80 PS=23 IP=OFF AD=M  
\*  
SET KEY PF3 = PGM  
PF15 = PGM  
\*  
IF \*DATA GT 0 THEN  
DO  
INPUT (AD=MIL) #PARM  
DOEND  
\*  
#FUNCTION = ‘CONTROL ’  
#SERVICE = ‘DISPLAY’  
#REFRESH = ‘REFRESH’  
\*  
CALL ‘ISPLINK’ #FUNCTION #SERVICE #REFRESH  
\*  
#FUNCTION = ‘SELECT’  
#BUFFER-LEN = 40  
#BUF1 = ‘PANEL(ISR@PRIM) OPT(’  
#BUF2 = ‘)’  
#BUF3 = ’ NEWAPPL(ISR)’  
COMPRESS #BUF1 #PARM #BUF2 #BUF3  
INTO #BUFFER  
CALL ‘ISPLINK’ #FUNCTION #BUFFER-LEN #BUFFER  
\*  
SET CONTROL ‘R’  
\*  
END

---

<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:02pm UTC](https://techcommunity.softwareag.com/t/tso-from-within-natural-tso/100880/4 "2021-04-02T15:02:07Z")

</div>


