Can any one help me out how to pass the parameter fdt and fdu to the adafdu utility
On adabas for Linux/Unix you can write a simple textfile containing the FDT and set the corresponding environment variable FDUFDT.
For example, here’s a script we are using for loading of the checkpoint file:
#!/bin/sh
# Shell script to load Checkpoint file
# . ${SAG}/sagenv >/dev/null # only needed if started with crontab
DBID=1
export FDUFDT=/tmp/f1.fdu
adaset $DBID
echo '1,cp
2,ti,8,b,nu
2,bn,4,b,nu
2,jn,8,a,nu
2,na,4,a,nu
2,tn,2,b,nu
2,ty,1,b,nu
2,ex,1,b,nu' > $FDUFDT
$ADADIR/$ADAVERS/adafdu << END_OF_PARAMS >/tmp/logfile.txt 2>&1
dbid=$DBID
file=1
maxisn=5000,name=Checkpoint
assopfac=5,datapfac=5
uisize=3b,nisize=10b,dssize=100b
fdt
END_OF_PARAMS
err=$?
if [ $err != 0 ]
then
echo "adafdu: Failed with $err"
else
echo "adafdu: Successful terminated"
fi
exit $err