sftp BatchMode issue

Hello All,
I have a issue with the below script that i am using to sftp a file.

sftp -o BatchMode=yes $sftpLogin <<EOF
cd /ftp/cds
get cdstesting.csv
quit
EOF

When i use this, the connetion establishes and the connections doesnt returns from and hangs in the connecting mode. I think there is an issue with EOF. can someone please help ?