Unable to get the Value of variable

Hi,
I have a properties file that is read by the Unix Shell Script.

The script prompt the user to enter some input feilds and then based on user input it needs to look other values from properties file

Example
abc.properties file has following properties
Dev.DB2.name=someDEVDB2
Dev.DB2.ID=someDEVID
QA.DB2.name=someQADB2
QA.DB2.ID=someQAID

The script prompt use to enter the region as Dev or QA

Based on this the script need to get the value from property file.
The region is read as
$regionName say Dev

now i need to get the value of DB2.name
i tried doing
DB2_NAME= ${regionName}.DB2.name
but this doesnot return someDEVDB2

Any help is really appreciated

It doesn't substitute twice. If you want to get a name indirectly like that, try

DB2_NAME=${regionName}.DB2.name
echo ${!DB2_NAME}

Corona688 - This too didnt work, when i excute the ksh script i get the error back as bad substitution

If your shell doesn't support variable references you'll have to use the eval hack, then. That forces it to evaluate the text it's been given as a raw shell statement again.

$ VARA=A
$ VARB=B
$ VARAB=1234

$ VAR=`eval echo "\\$VAR$VARA$VARB"`
$ echo $VAR
1234
$