Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BTEQ to log the error code

Status
Not open for further replies.

cuutebutterfly

Programmer
Nov 23, 2004
1
US
Hi,
Is there a way to capture the error code that is returned by a BTEQ session into a log file.

Please help me with this !!!

Thx
Fany
 
You can use

.quit errorcode

to get errorcode in the log file
 
After the .quit errorcode, you can capture the error if you're calling BTEQ from a ksh script:

status=${?}

${?} command captures the return code of the command immediately following it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top