Hi Teame
I am new to teradata, I haved DB2, in which for connection to DB is quite easy, just call profile and connect to db and we can use UNIX command after SQL if need to do with that.
I have searched abt TeraData, but didn't find the solution , Here we need to call BTEQ which is not supported UNIX command, for each SQL we need to use export in temp files if want to do any calculation on it. If there is any other way to do it, Please share...
One more thing, I have tried to write a small script , But this is giving error :
cat teraconchk.sh
echo "This script will connect to teradata and fetch the data"
`bteq<<EOC
.logon test/sysdba,pass
select * from dbc.tables;
.logoff
EOC
`
echo "Done"
Error:
./teraconchk.sh
This script will connect to teradata and fetch the data
*** Warning: EOF on INPUT stream.
./teraconchk.sh: line 9: BTEQ: command not found
Done
Please help
DataStage4you
http://datastage4you.blogspot.in/