# UNIX Natural Program Editor

**URL:** <https://techcommunity.softwareag.com/t/unix-natural-program-editor/207884>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Single-Point-of-Development-SPoD, Natural-on-Windows-Unix\
**Created:** [April 14, 2020, 4:50pm UTC](https://techcommunity.softwareag.com/t/unix-natural-program-editor/207884 "2020-04-14T16:50:35Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Brown2](https://avatars.discourse-cdn.com/v4/letter/d/aca169/32.png) [@David\_Brown2](https://techcommunity.softwareag.com/u/David_Brown2)\
**Post date:** [April 14, 2020, 4:50pm UTC](https://techcommunity.softwareag.com/t/unix-natural-program-editor/207884/1 "2020-04-14T16:50:35Z")

</div>

Hello, I am no longer able to use the Windows Natural Editor so am forced to use the UNIX natural editor but am struggling with how to enter a new line in the editor and also how to unlock a locked object, been struggling to find any answer to this for some time and is now urgent so any assistance would be greatly appreciated

---

<div class="post-metadata">

**Author:** ![George\_Cooper](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/george_cooper/32/7831_2.png) [@George\_Cooper](https://techcommunity.softwareag.com/u/George_Cooper)\
**Post date:** [April 14, 2020, 7:02pm UTC](https://techcommunity.softwareag.com/t/unix-natural-program-editor/207884/2 "2020-04-14T19:02:43Z")

</div>

Have you tried using the Line commands documented in this portion of the Unix editor manual?

[http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat912unx/edis/pgm\_ux\_line\_cmds.htm](http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat912unx/edis/pgm_ux_line_cmds.htm)

It seems to be similar to the mainframe editor, but not quite. The doc seems to indicate you type line commands over the line numbers (prefix area) starting in column 1. So to insert a line, type I over the line number where you want to insert, or I3 to insert 3 lines, etc. That causes blank line(s) to be created that you can type into.

If the line numbers area is protected so you can’t type over them, you have to use the PROTECT OFF editor command to unprotect them.

[http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat912unx/edis/pgm\_ux\_editor\_cmds.htm#edis\_ux\_protect](http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat912unx/edis/pgm_ux_editor_cmds.htm#edis_ux_protect)

Not sure about the LOCK issue. Is that like a checkout function to protect source from being edited by 2 people? Probably best to give your DBA or Natural support person a call.

Since you aren’t working with SPOD anymore, maybe any future questions would be better posted under the Natural on Open Systems forum, where the Natural Unix programmers hang out.

Hope that helps. Good luck!  
George

---

<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:** [April 14, 2020, 10:10pm UTC](https://techcommunity.softwareag.com/t/unix-natural-program-editor/207884/3 "2020-04-14T22:10:47Z")

</div>

If you have experience with ISPF, you will notice that many line commands are the same: Copy, Delete, Insert, Repeat, …

What version of Natural for Unix are you using?

Is Natural Security installed?

---

<div class="post-metadata">

**Author:** ![David\_Brown2](https://avatars.discourse-cdn.com/v4/letter/d/aca169/32.png) [@David\_Brown2](https://techcommunity.softwareag.com/u/David_Brown2)\
**Post date:** [April 15, 2020, 4:07pm UTC](https://techcommunity.softwareag.com/t/unix-natural-program-editor/207884/4 "2020-04-15T16:07:30Z")

</div>

Thank you George,  
the link helped with how to apply the line command so am able to make the changes I need, much appreciate.  
I am still unable to Unlock Locked objects, it is a checkout function to prevent others accessing the object but if the session closes it then remains locked. In SPoD you could Unlock locked objects but I cannot seem to find out how to do this from the server.

Hello Ralph,  
I am not familiar with ISPF but have resolved the editing issue thanks to George, just the Unlocking now. We are still on a very old version of natural, 5.3, for which the SPoD on windows does not work on Windows 10, looking at older versions of SPoD which would run on Windows 10 do not support 5.3 hence my problem.

---

<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:** [April 15, 2020, 4:49pm UTC](https://techcommunity.softwareag.com/t/unix-natural-program-editor/207884/5 "2020-04-15T16:49:05Z")

</div>

- ISPF is IBM’s mainframe IDE/editor with which many Natural developers are familiar.

- Natural Security can be set to prevent you from using the UNLOCK command.

- Natural 5 is ancient, but I am a bit surprised that it isn’t compatible with newer versions of Windows. Isn’t this a licensing issue? Have you asked SAG for an updated license key?

---

<div class="post-metadata">

**Author:** ![David\_Brown2](https://avatars.discourse-cdn.com/v4/letter/d/aca169/32.png) [@David\_Brown2](https://techcommunity.softwareag.com/u/David_Brown2)\
**Post date:** [April 16, 2020, 7:20am UTC](https://techcommunity.softwareag.com/t/unix-natural-program-editor/207884/6 "2020-04-16T07:20:13Z")

</div>

Hello Ralph,  
Yes, very old…We did contact SoftwareAG but was told we would have to upgrade, due to internal business issues this was not practical so have been having to use the UNIX editor. Not sure about the NATURAL Security, I have always been able to do it via SPoD so assumed it would be the same on UNIX, not sure how to check

---

<div class="post-metadata">

**Author:** ![George\_Cooper](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/george_cooper/32/7831_2.png) [@George\_Cooper](https://techcommunity.softwareag.com/u/George_Cooper)\
**Post date:** [April 15, 2020, 5:47pm UTC](https://techcommunity.softwareag.com/t/unix-natural-program-editor/207884/7 "2020-04-15T17:47:00Z")

</div>

David,

You have my sympathy. It’s never any fun losing a favorite program editor. Many mainframers are going through your situation in reverse, forced off the old Natural editor onto NaturalONE and its windows-style text editing.

Ralph is probably right about the UNLOCK command. You probably just need Natural Security permission on the NDV server to use it. A search for UNLOCK turned up this reference in the Natural Security manual.

[http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat836unx/nsc/nsc\_appl.htm?hi=unlock+unlocked+unlocking](http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat836unx/nsc/nsc_appl.htm?hi=unlock+unlocked+unlocking)

Good luck,  
George

---

<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:** [April 17, 2020, 12:56am UTC](https://techcommunity.softwareag.com/t/unix-natural-program-editor/207884/8 "2020-04-17T00:56:31Z")

</div>

The SYSPROD command will tell you whether Natural Security (NSC) is installed.

Also look for Predict. Lock records are stored in FDIC if Predict is installed. Otherwise they’re in an FDIC clone called the Natural Development Server file.

---

<div class="post-metadata">

**Author:** ![David\_Brown2](https://avatars.discourse-cdn.com/v4/letter/d/aca169/32.png) [@David\_Brown2](https://techcommunity.softwareag.com/u/David_Brown2)\
**Post date:** [April 20, 2020, 8:13am UTC](https://techcommunity.softwareag.com/t/unix-natural-program-editor/207884/9 "2020-04-20T08:13:02Z")

</div>

Hello both, really appreciate you continued advice.

Ralph, if I run SYSPROD I get the below:  
Natural 6.3  
Natural IDL Generator 6.1  
Natural Development Server 2.2

I have found a directory called FDIC but the files in there are of the format PRDNNN.XXX, are these the lock files?

---

<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:** [June 22, 2020, 3:12pm UTC](https://techcommunity.softwareag.com/t/unix-natural-program-editor/207884/10 "2020-06-22T15:12:34Z")

</div>

My Company is also on an older Nat-Version@Solaris10. We got a compiled Natural-Program from Software AG one day called UUNLOCK . Works good so far. Please ask your support for that…

---

<div class="post-metadata">

**Author:** ![wolfgang.winter](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/wolfgang.winter/32/17954_2.png) [@wolfgang.winter](https://techcommunity.softwareag.com/u/wolfgang.winter)\
**Post date:** [June 22, 2020, 3:39pm UTC](https://techcommunity.softwareag.com/t/unix-natural-program-editor/207884/11 "2020-06-22T15:39:55Z")

</div>

David,

I’m a bit confused, you still have NDV, so why can you no longer use SPoD / the Windows Editor ?

Unlocking objects is meant to be done from SPoD or ONE, not from the Linux environment,  
although, as Matthias says, there is a special solution which has to be requested from support.

---

<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:44pm UTC](https://techcommunity.softwareag.com/t/unix-natural-program-editor/207884/12 "2021-04-02T15:44:31Z")

</div>


