# Change the length of more than one field in a file

**URL:** <https://techcommunity.softwareag.com/t/change-the-length-of-more-than-one-field-in-a-file/207335>\
**Category:** Forum\
**Tags:** Adabas-Natural, Adabas, Adabas-Basics-on-Linux-Unix-Windows, Adabas-on-Windows-UNIX, Adabas-on-Linux\
**Created:** [February 18, 2020, 2:55pm UTC](https://techcommunity.softwareag.com/t/change-the-length-of-more-than-one-field-in-a-file/207335 "2020-02-18T14:55:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Brantner](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/michael_brantner/32/125_2.png) [@Michael\_Brantner](https://techcommunity.softwareag.com/u/Michael_Brantner)\
**Post date:** [February 18, 2020, 2:55pm UTC](https://techcommunity.softwareag.com/t/change-the-length-of-more-than-one-field-in-a-file/207335/1 "2020-02-18T14:55:28Z")

</div>

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?\>

---

<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/change-the-length-of-more-than-one-field-in-a-file/207335/2 "2021-04-02T15:44:16Z")

</div>


