What am i doing wrong
The following query works
db2 -x "select 'create alias PSW${DBN}.${T1} for psoft.${T1};' from syscat.tables where TABNAME='SAMPLE' and type='T'"
The following does not work as soon as i pass a variable in where condition
db2 -x "select 'create alias PSW${DBN}.${T1} for psoft.${T1};' from syscat.tables where TABNAME=${T1}"