#!/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
#!/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