# How to unlock a source-code under Linux?

**URL:** <https://techcommunity.softwareag.com/t/how-to-unlock-a-source-code-under-linux/60368>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Linux, Natural-on-Windows-Unix\
**Created:** [December 1, 2005, 8:55pm UTC](https://techcommunity.softwareag.com/t/how-to-unlock-a-source-code-under-linux/60368 "2005-12-01T20:55:39Z")\
**Posts on this page:** 14\
**Page:** 1

<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:** [December 1, 2005, 8:55pm UTC](https://techcommunity.softwareag.com/t/how-to-unlock-a-source-code-under-linux/60368/1 "2005-12-01T20:55:39Z")

</div>

Hello all!

We got a development server with an NATURAL-Environment installed. If two users try to edit a source-code at the same time, the Error NAT7600 occurs. That’s OK.

But sometimes this Error happens due to a crash of a SPoD-client. Then, we have to clear this lock with the NATURAL-command “UNLOCK”. But this works only under Windows-Environment.

So my question is: How to unlock a source-code under Linux?

Regards,

Matthias

---

<div class="post-metadata">

**Author:** ![anon29934956](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@anon29934956](https://techcommunity.softwareag.com/u/anon29934956)\
**Post date:** [December 1, 2005, 9:29pm UTC](https://techcommunity.softwareag.com/t/how-to-unlock-a-source-code-under-linux/60368/2 "2005-12-01T21:29:55Z")

</div>

I checked with Natural 611 on Windows and Solaris.  
Map the environment.  
logon to the library  
enter “UNLOCK” into the command line  
A window appear providing some options to unlock the objects. Please check the NSC definition if you cannot use the UNLOCK command.

Regards,  
Michael

---

<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:** [December 2, 2005, 1:09pm UTC](https://techcommunity.softwareag.com/t/how-to-unlock-a-source-code-under-linux/60368/3 "2005-12-02T13:09:52Z")

</div>

> [@mmr](#):
>
> I checked with Natural 611 on Windows and Solaris.  
> Map the environment.  
> logon to the library  
> enter “UNLOCK” into the command line

Thanks for answering. But my problem is: It seems like Natural 6.1.1 PL 15 doesn’t know the command “unlock”. And the Natural 6.1.1 for Unix Documentation says:

```auto
UNLOCK
This command is for Natural for Windows.

Back to System Commands Overview.
```

---

<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:** [December 2, 2005, 1:23pm UTC](https://techcommunity.softwareag.com/t/how-to-unlock-a-source-code-under-linux/60368/4 "2005-12-02T13:23:46Z")

</div>

> [@mmr](#):
>
> Map the environment.

Hmmm! Now I’m learning! Do I have to map the environment, even if I am already on the server? My question is then: How to map an environment under Linux?

We never did this, because it’s a bit strange to map an environment that is already availalbe…

---

<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:** [December 2, 2005, 1:46pm UTC](https://techcommunity.softwareag.com/t/how-to-unlock-a-source-code-under-linux/60368/5 "2005-12-02T13:46:56Z")

</div>

Yes, the command UNLOCK works from a connected SPoD client ONLY.

When you try it from an “interactive” NATURAL session, you are NOT working on an “already available” server environment, because the NDV server is a separate process !

---

<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:** [December 2, 2005, 2:34pm UTC](https://techcommunity.softwareag.com/t/how-to-unlock-a-source-code-under-linux/60368/6 "2005-12-02T14:34:08Z")

</div>

> [@WoWi](#):
>
> Yes, the command UNLOCK works from a connected SPoD client ONLY.
> 
> When you try it from an “interactive” NATURAL session, you are NOT working on an “already available” server environment, because the NDV server is a separate process !

Maybe a stupid question: Is the SPoD-Client only available for Windows?

---

<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:** [December 2, 2005, 4:45pm UTC](https://techcommunity.softwareag.com/t/how-to-unlock-a-source-code-under-linux/60368/7 "2005-12-02T16:45:46Z")

</div>

> [@Matthias](#):
>
> Maybe a stupid question: Is the SPoD-Client only available for Windows?

Currently - yes.

---

<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:** [December 2, 2005, 5:58pm UTC](https://techcommunity.softwareag.com/t/how-to-unlock-a-source-code-under-linux/60368/8 "2005-12-02T17:58:34Z")

</div>

> [@WoWi](#):
>
> > [@Matthias](#):
> >
> > Maybe a stupid question: Is the SPoD-Client only available for Windows?
> 
> Currently - yes.

So (if I understand you correctly) it’s impossible to unlock a source code via Linux. ☹ …currently

Ok, but what did Michael mean with

> [@mmr](#):
>
> Please check the NSC definition if you cannot use the UNLOCK command.

I guess NSC means Natural Security. We don’t use this product.

---

<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:** [December 2, 2005, 6:14pm UTC](https://techcommunity.softwareag.com/t/how-to-unlock-a-source-code-under-linux/60368/9 "2005-12-02T18:14:03Z")

</div>

> [@Matthias](#):
>
> So (if I understand you correctly) it’s impossible to unlock a source code via Linux. ☹ …currently

Correct, I’m afraid.

> [@Matthias](#):
>
> Ok, but what did Michael mean with
> 
> > [@mmr](#):
> >
> > Please check the NSC definition if you cannot use the UNLOCK command.
> 
> I guess NSC means Natural Security. We don’t use this product.

Yes, NSC = Natural Security. When using NSC one can define if a user can

- not unlock any object  
unlock his own objects  
unlock objects locked by anyone

---

<div class="post-metadata">

**Author:** ![John\_Smith](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/john_smith/32/39012_2.png) [@John\_Smith](https://techcommunity.softwareag.com/u/John_Smith)\
**Post date:** [March 20, 2014, 8:31pm UTC](https://techcommunity.softwareag.com/t/how-to-unlock-a-source-code-under-linux/60368/10 "2014-03-20T20:31:21Z")

</div>

Hi,  
I had this problem today. I am using NAT63 and NSC63 on Linux, but there is no NDV running. For any reason, the session/process dropped, and I am not able to edit it again. Whenever I try it I receive a message saying that the object is locked, even the user is the same in the message. When I try to use UNLOCK command, I receive the message that I am on Local enviroment.  
So, is there a way to unlock the object?  
tks.

---

<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 20, 2014, 9:10pm UTC](https://techcommunity.softwareag.com/t/how-to-unlock-a-source-code-under-linux/60368/11 "2014-03-20T21:10:10Z")

</div>

There is no “native” unlock on NAT63 for Linux, but there’s a special update for this, please talk to your friendly support rep and ask them to provide it to you.

---

<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:** [March 24, 2014, 10:42am UTC](https://techcommunity.softwareag.com/t/how-to-unlock-a-source-code-under-linux/60368/12 "2014-03-24T10:42:42Z")

</div>

Right. Some years ago, I got a utility from the support called UUNLOCK. It starts a Dialog like this:

```auto

        NATURAL V 6.3.14 PL 0 Software AG 2013
10:38:14 *****NATURAL UNLOCK COMMAND***** 2014-03-24
User MYUSER - Preliminary Version - Library SAMPLE

         Object name ..... * ________________________________

         Library ......... SAMPLE
         DBID ............ 2 ___
         FNR ............. 2 ___

         Locked user ID .. MYUSER _

Command ===>
Enter-PF1---PF2---PF3---PF4---PF5---PF6---PF7---PF8---PF9---PF10--PF11--PF12---
                  Exit Canc
```

How about making this tool official?

---

<div class="post-metadata">

**Author:** ![John\_Smith](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/john_smith/32/39012_2.png) [@John\_Smith](https://techcommunity.softwareag.com/u/John_Smith)\
**Post date:** [November 28, 2014, 1:28am UTC](https://techcommunity.softwareag.com/t/how-to-unlock-a-source-code-under-linux/60368/13 "2014-11-28T01:28:37Z")

</div>

hi,

does anyone can provide this special update? (instead of our friendly support…) At my own risk

tks.

---

<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:40pm UTC](https://techcommunity.softwareag.com/t/how-to-unlock-a-source-code-under-linux/60368/14 "2021-04-02T14:40:22Z")

</div>


