# Migrating to Linux

**URL:** <https://techcommunity.softwareag.com/t/migrating-to-linux/179901>\
**Category:** Forum\
**Tags:** Adabas-Natural, Adabas, Adabas-on-Linux, Adabas-Utilities-on-Open-Systems\
**Created:** [December 28, 2014, 10:30am UTC](https://techcommunity.softwareag.com/t/migrating-to-linux/179901 "2014-12-28T10:30:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hezi](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@Hezi](https://techcommunity.softwareag.com/u/Hezi)\
**Post date:** [December 28, 2014, 10:30am UTC](https://techcommunity.softwareag.com/t/migrating-to-linux/179901/1 "2014-12-28T10:30:13Z")

</div>

Hi,

We are trying to build some Linux Script Template for using Adabas Utilities.  
Can someone send some examples?  
Escpecially with Adadbm, that we notice it is not send any return code back.

With Regards,  
Hezi

---

<div class="post-metadata">

**Author:** ![anon72918622](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@anon72918622](https://techcommunity.softwareag.com/u/anon72918622)\
**Post date:** [December 29, 2014, 9:49am UTC](https://techcommunity.softwareag.com/t/migrating-to-linux/179901/2 "2014-12-29T09:49:01Z")

</div>

Hi Hezi,

Actually, after installing Adabas you should find scripts you can either use or find out  
how things work.

Regards,  
Wolfgang

---

<div class="post-metadata">

**Author:** ![James\_Gilpin4](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/james_gilpin4/32/959_2.png) [@James\_Gilpin4](https://techcommunity.softwareag.com/u/James_Gilpin4)\
**Post date:** [December 29, 2014, 3:59pm UTC](https://techcommunity.softwareag.com/t/migrating-to-linux/179901/3 "2014-12-29T15:59:54Z")

</div>

Hezi,

I am a little confused as to your request

Could you provide more detail?

James

---

<div class="post-metadata">

**Author:** ![Hezi](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@Hezi](https://techcommunity.softwareag.com/u/Hezi)\
**Post date:** [December 30, 2014, 8:30am UTC](https://techcommunity.softwareag.com/t/migrating-to-linux/179901/4 "2014-12-30T08:30:23Z")

</div>

> [@](#):
>
> Could you provide more detail?

I want to use “adadbm”, but we saw there is no return code back in the script.

> [@](#):
>
> Actually, after installing Adabas you should find scripts you can either use or find out  
> how things work.

Can you send me the path, to find the scripts?

---

<div class="post-metadata">

**Author:** ![James\_Gilpin4](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/james_gilpin4/32/959_2.png) [@James\_Gilpin4](https://techcommunity.softwareag.com/u/James_Gilpin4)\
**Post date:** [December 30, 2014, 3:31pm UTC](https://techcommunity.softwareag.com/t/migrating-to-linux/179901/5 "2014-12-30T15:31:44Z")

</div>

Hezi,

Simply repeating the question is not the level of detail required to provide an answer.

To which script do you refer when you say it does not provide a return code?

When adadbm invoked, adadbm will provide a return code. Perhaps the script you are using is not capturing the return code.

For example:

try this script (change the dbid=5 to a valid dbid number on your system, this assumes a bash shell)

adadbm test  
export rc=$?  
adadbm dbid=5  
export rc2=$?  
echo 'The return code from the first command is: ’ $rc  
echo 'The record code form the second command is: ’ $rc2

If you try to execute a command in between the first adadbm and the capture ($?) of the return code - it will pick up the wrong return code…

For example

adadbm test  
adadbm dbid=5  
export rc=$?  
export rc2=$?  
echo 'The return code from the first command is: ’ $rc  
echo 'The record code form the second command is: ’ $rc2

In this case, the value of rc will be from the second command, and rc2 will be from the third command and unrelated to adadbm

---

<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:32pm UTC](https://techcommunity.softwareag.com/t/migrating-to-linux/179901/6 "2021-04-02T15:32:37Z")

</div>


