I’m using scripts for changing, defining, inverting, … files and fields. Right now I got the case to change the length of more than one fields within one file in multiple systems. Inverting more than one field is no problem, but when I try to change more than one field I always get the error:
"%ADADBM-E-ADA015, ## Response code 015 from ADABAS"
As soon as I do the changes one by one everything is ok. The manual doesn’t really help 'cause there’s no such example here.
This is the script:
#!/bin/sh
. /app/softwareag/bin/sagenv.new >/dev/null
fnr=$1
file="/app/softwareag/scripts/adadbm/ada$fnr.dbm"
cat - << eot $file >/app/softwareag/scripts/adadbm/tmp001.dat
eot
adadbm </app/softwareag/scripts/adadbm/tmp001.dat
err=$?
if [ $err != 0 ]
then
echo “adadbm for File $fnr failed with $err”
else
echo “adadbm: Successful terminated”
rm /app/softwareag/scripts/adadbm/tmp001.dat
fi
exit $err
And this is an example of a parameter-file that won’t work:
DBID=45
CHANGE_FIELDS=15
01,AA,10,U,DE
01,SR,10,U,NU,DE
01,SS,10,U,NU,MU
01,FG,10,U,NU,DE
02,NC,10,U,NU,DE
END_OF_FIELDS
I can change the fields one by one but not all of them at once. What am I doing wrong?>