Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

BTEQ is not returning proper error code when run file is not present. - response (7) by vcbteq

$
0
0

#!/usr/bin/ksh
bteq <<-EOF
.logmech ldap
.logon xxxx/xxxxxxxx,xxxxx
.set width 4000;
.set underline off;
.set titledashes off;
.set heading '';
.set timemsg query;
.set maxerror=1
.run file /path_to_bteq//test_bteq01.sql
.EXIT ERRORCODE
.quit
EOF

Thanks Fred. So the above code works. Now I want to keep the password particulars in a central file. Is there a way to do it
 


Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>