I have written the code. to check the variable value if it GL then SQLGL should XDOAPPL, if AP then SQLAP should assign XDOAPPL variable. but it is giving me the error.
APPL=$1
x=AP
y=GL
echo "Value of x = $x and y = $y."
a=SQLAP
b=SQLGL
if [["$APPL" = "AP"]};
then
XDOAPPL=${a}
echo "AP XDOAPPL =$XDOAPPL"
elif [["$APPL" = "GL"]];
then
XDOAPPL=${b}
echo "GL XDOAPPL =$XDOAPPL"
else
echo "Nothing to go"
fi