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
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
Hi Hezi,
Actually, after installing Adabas you should find scripts you can either use or find out
how things work.
Regards,
Wolfgang
Hezi,
I am a little confused as to your request
Could you provide more detail?
James
I want to use “adadbm”, but we saw there is no return code back in the script.
Can you send me the path, to find the scripts?
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