Pass variable to SFTP

Hi All,

I am using SFTP command to transfer the file.

 
 
SRC=`pwd`
DIG=123
 
/bin/sftp -B /dev/stdin xyz@abc.net <<::
mput ${SRC}/GGG.${DIG}.tar.gz
bye
::

The problem is, after entring into sftp command, it is not taking variable values of SRC and DIG.

can someone help me what is the other way. I tried to write a SFTP command in a seperate file and used that file with -B option in sftp command, but it is not supporting.